User Defined Functions in PLSQL | Oracle PL/SQL Tutorial Videos | Mr.Vijay Kumar

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024

Комментарии • 35

  • @NareshIT
    @NareshIT  5 лет назад +3

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

  • @swati8201
    @swati8201 7 лет назад +6

    Your all video is so awesome that any one can be good in PL/SQL Programming .. A salute to you sir :)

  • @shridharadevadiga7144
    @shridharadevadiga7144 7 лет назад +2

    Awesome explanation sir.....................

  • @snehil_tripathi9583
    @snehil_tripathi9583 7 лет назад +2

    great explaination sir
    Thank you 🖒

  • @shreyapatel2009
    @shreyapatel2009 5 лет назад +2

    Sir you are grate!! Thank you sir........

  • @be-a-76-abhishektare55
    @be-a-76-abhishektare55 5 лет назад

    Best video to learn functions

  • @jaspreetkathuria343
    @jaspreetkathuria343 2 года назад +1

    Question 1:
    Create a procedure that accepts 3 parameters, the first two are of mode IN with number as
    their datatype and the third one is of mode OUT in form of Varchar2. The procedure will
    compare the first two numbers and output the result as EQUAL, or DIFFERENT.
    Create a second procedure called L8Q1 that accepts the two sides of a rectangle. The
    procedure will calculate the area and the perimeter of the rectangle. Use the procedure
    created previously to display if the shape is a square or a rectangle. The following are the
    example on how we execute the procedure and the expected output.
    SQL > exec L4Q1(2,2)
    The area of a square size 2 by 2 is 4. It`s perimeter is 8.
    SQL > exec L4Q1(2,3)
    The area of a rectangle size 2 by 3 is 6. It`s perimeter is 10.

  • @kesavareddy1767
    @kesavareddy1767 3 года назад

    Nice explanation sir

  • @bhavesh6674
    @bhavesh6674 7 лет назад +3

    Create a function named 'find_stadium_count' which takes k_city_id as
    input and returns the stadium_count, i.e., it returns the number of
    stadiums in the city which its corresponding id as k_city_id.
    Use the skeleton file, to create the function.
    Function name: find_stadium_count
    Input parameter : k_city_id with data type as int.
    Output parameter : stadium_count with data type as int.
    Table used : k_venue.
    when i tried i am getting compilation error plz help me out sir...!
    please write a function for the given specifications sir?

  • @krzysztofs6149
    @krzysztofs6149 5 лет назад +2

    Thanks!

  • @appustorage824
    @appustorage824 3 года назад

    Am only see your videos when reading Oracle and purchased your text book from naresh it sir .

  • @DheerajKumar-hi8jz
    @DheerajKumar-hi8jz 3 года назад +2

    What is dual??

  • @nageshnethi7910
    @nageshnethi7910 7 лет назад +1

    plz upload total SQL & PL SQL videos.....plz sir

  • @shivapotnuru662
    @shivapotnuru662 5 лет назад

    sir, i need for answer with 2 examples....

  • @shivapotnuru662
    @shivapotnuru662 5 лет назад

    can we call functions inside the procedure and can we call procedure inside the function in sql? plz tell me sir.......i need for 2 examples regarding above problems

    • @manojsaruk3624
      @manojsaruk3624 Год назад

      Yes , we are able to call function inside the procedure, but no idea about calling procedure inside the function . I had implemented it in our company.

  • @jaspreetkathuria343
    @jaspreetkathuria343 2 года назад

    Can you help me in this
    Create a pseudo function called pseudo_fun that accepts 2 parameters represented the
    height and width of a rectangle. The pseudo function should return the area and the
    perimeter of the rectangle.
    Create a second procedure called L4Q2 that accepts the two sides of a rectangle. The
    procedure will use the pseudo function to display the shape, the area and the perimeter.
    SQL > exec L4Q2(2,2)
    The area of a square size 2 by 2 is 4. It`s perimeter is 8.
    SQL > exec L4Q2(2,3)
    The area of a rectangle size 2 by 3 is 6. It`s perimeter is 10.

  • @galisateesh933
    @galisateesh933 Год назад

    Sir function calc ఏదైన ఉండచ్చా Sir

  • @sharmilakondakamarla5816
    @sharmilakondakamarla5816 2 года назад

    Sir we must use capitals in' creating or replace function' line

  • @junaidbinabduljabbar8189
    @junaidbinabduljabbar8189 5 лет назад

    How to create Function in pgsql that
    if id=0
    then insertion operation will be done
    elsif id>0 and is_active=1 then
    updation operation must be done
    elsid id>0 and is_active=0
    then update
    only
    is_active=0

  • @anagha6789
    @anagha6789 2 года назад

    Why from dual is used?

  • @AyazurRahman
    @AyazurRahman 3 года назад +2

    What is "from dual" in the end of example function ?

  • @light-heartedpleasure6637
    @light-heartedpleasure6637 6 лет назад

    What is dual?

    • @rohankayande2554
      @rohankayande2554 6 лет назад

      DUAL is virtual column in sql ,which performs only arithimatic and date operations like +,-,/* and sysdate

    • @Venu_P
      @Venu_P 6 лет назад

      Dual is a default table in Oracle which contains one row and one column in a table

    • @joanmahimaidoss4577
      @joanmahimaidoss4577 6 лет назад +1

      Dual is dummy table. it has one row and one column. Default value x. It's used to process our own data.

  • @protograde2723
    @protograde2723 2 года назад

    I felt sleepy.

  • @sowmiyas813
    @sowmiyas813 3 года назад

    Sir I'm not understand

  • @omkarbhalerao4551
    @omkarbhalerao4551 3 года назад

    SYNTAX FOR SQL * PLUS (other_way round)
    1 SQL> CREATE OR REPLACE
    2 FUNCTION CALC ( a IN number, b IN number , op IN varchar)RETURN number
    3 is
    4 RESULT NUMBER(10);
    5 begin
    6 if op ='+' then
    7 result:= (a+b);
    8 elsif op ='-'then
    9 result :=(a-b);
    10 elsif op ='*' then
    11 result:= (a*b);
    12 else
    13 result :=(a/b);
    14 end if;
    15 RETURN result;
    16 end;
    17 /