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

Поділитися
Вставка
  • Опубліковано 21 лип 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 🖒

  • @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.

  • @be-a-76-abhishektare55
    @be-a-76-abhishektare55 5 років тому

    Best video to learn functions

  • @shreyapatel2009
    @shreyapatel2009 5 років тому +2

    Sir you are grate!! Thank you 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?

  • @appustorage824
    @appustorage824 3 роки тому

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

  • @DheerajKumar-hi8jz
    @DheerajKumar-hi8jz 2 роки тому +2

    What is dual??

  • @kesavareddy1767
    @kesavareddy1767 3 роки тому

    Nice explanation sir

  • @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.

  • @shivapotnuru662
    @shivapotnuru662 5 років тому

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

  • @krzysztofs6149
    @krzysztofs6149 5 років тому +2

    Thanks!

  • @nageshnethi7910
    @nageshnethi7910 7 років тому +1

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

  • @galisateesh933
    @galisateesh933 Рік тому

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

  • @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.

  • @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

  • @sharmilakondakamarla5816
    @sharmilakondakamarla5816 2 роки тому

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

  • @anagha6789
    @anagha6789 2 роки тому

    Why from dual is used?

  • @AyazurRahman
    @AyazurRahman 3 роки тому +2

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

  • @protograde2723
    @protograde2723 2 роки тому

    I felt sleepy.

  • @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.

  • @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 /