PL/SQL tutorial 10: PL/SQL IF THEN ELSIF Statement in Oracle Database by Manish Sharma

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025
  • Watch and learn IF THEN ELSIF (ELSIF ladder)statement in PL/SQL by Manish Sharma RebellionRider.com
    ------------------------------------------------------------------------
    ►►►LINKS◄◄◄
    Blog : www.rebellionr...
    Previous Tutorial
    ► IF-ELSE • PL/SQL tutorial 9: IF ...
    ►Simple Case: • SQL tutorial 49: CASE ...
    ►Searched Case: • SQL tutorial 50: CASE ...
    ►DECODE: • SQL tutorial 51: DECOD...
    -------------------------------------------------------------------------
    ►►►Let's Get Free Uber Cab◄◄◄
    Use Referral Code UberRebellionRider and get $20 free for your first ride.
    -------------------------------------------------------------------------
    ►Make sure you SUBSCRIBE and be the 1st one to see my videos!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ►►►Find me on Social Media◄◄◄
    Follow What I am up to as it happens on
    / rebellionrider
    / imthebhardwaj
    / rebellionrider
    plus.google.co...
    / mannbhardwaj
    / rebellionrider
    / rebellionrider
    You can also Email me at
    for E-mail address please check About section
    Please please LIKE and SHARE my videos it makes me happy.
    Thanks for liking, commenting, sharing and watching more of our videos
    This is Manish from RebellionRider.com
    ♥ I LOVE ALL MY VIEWERS AND SUBSCRIBERS

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

  • @zen-x-football
    @zen-x-football Год назад +8

    10 years ago this type of teaching 🔥🔥

  • @tenderphoenix
    @tenderphoenix 8 лет назад +13

    Manish you are so cool. Thank you very much for your work. We appreciate the effort you put into making these tutorials.

    • @Rebellionrider
      @Rebellionrider  8 лет назад +1

      +Bewildered Thank you so much for your encouraging words. They are truly a moral booster. always glad to be of help. Do keep watching and help others by sharing.

  • @ashwinnarayanan8254
    @ashwinnarayanan8254 2 месяца назад +1

    example rocks🔥✅

  • @PranjalChalak
    @PranjalChalak 5 месяцев назад

    The level of content is too good

  • @varshapi63
    @varshapi63 8 лет назад +2

    Manish your tutorial is very easy to understand.Thank you so much for the videos.Really appreciate your hard work in making these videos.It helped me a lot.

    • @Rebellionrider
      @Rebellionrider  8 лет назад

      Thank you so much. Your appreciation really means a lot to me. Please do make sure to Like, Share and Subscribe. Thanks

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

    Sir 😎 you are awesome
    Your teaching tone is very easy to understand,
    Thankyou sir ❤❤❤😊❤😊😊❤

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

    That's the way of teaching! Awesome! Thanks for the interesting examples

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

    Manish bhai....u have done great job... can't explain in words... 😀😀😀

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

    Your video is just awesome. It's clear, precise and short. Thank you so much 🙏

  • @TheMostHype
    @TheMostHype 6 лет назад +3

    love the way you describe brother

  • @kartikreddy815
    @kartikreddy815 7 лет назад

    Manish, man you are teaching like a rockstar. awesome bro

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

    Thanks for your BLOG, which really helps me a lot.

  • @sonnahawards9336
    @sonnahawards9336 9 лет назад

    HI Manish you work so hard and i wish you the best in what ever you are doing . You are a genus. keep up the good work, thanks for sharing

  • @dushyantdhingra2958
    @dushyantdhingra2958 8 лет назад

    Nice tutorials Manish sir......very easy to learn for beginners

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

    Thank you, God may gives you long life which is full of happiness

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

    Super like for avengers :D p.s. we admire ur teaching skills as well.. Thank you for ur videos they are helping alot. :)

  • @ajeetverma1902
    @ajeetverma1902 8 лет назад +3

    Very good session for new learner..

    • @Rebellionrider
      @Rebellionrider  8 лет назад +1

      Thank you so much for your appreciation. It means a lot to me.

  • @091_kushagramisra5
    @091_kushagramisra5 2 года назад

    Absolutely Awesome tutorial 🔥

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

    Kya sikhata hai bhai laajawab

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

    Best example ever manish

  • @nileshsingh3672
    @nileshsingh3672 8 лет назад

    Nice video Manish. Truly helpful

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

    BEST EXAMPLE EVER

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

    very very cool! Thank you Manish!

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

    Great Video! But the input works correctly if I use' &enter' instead of '&enter place' as input Amazon = Amazon place with the latter which is incorrect. I don't know if it has something to do with my version.

  • @bharathkumar4986
    @bharathkumar4986 8 лет назад

    good sessions for beginners. Is there any videos on OBIEE

  • @sireeshab9981
    @sireeshab9981 9 лет назад +3

    plz provide cursurs also

  • @krishnac3862
    @krishnac3862 7 лет назад

    Great work! Thanks a lot!

  • @varshapathak3427
    @varshapathak3427 7 лет назад

    good effort Sir!!!

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

    Can you please Share the PL/SQL notes like as you explained in RUclips tutorials .

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

    Kudos to you..

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

    Is END IF mandatory or we can stop till ELSE; how to handle case sensitive input values. What if I give capital letter inputs

  • @grahanam_art7088
    @grahanam_art7088 5 лет назад +6

    Dc and marvel example was hilarious 😂

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

      I am a huge fan of Superman and Wonder women from DC side and Ironman and Kinch T'challa from Marvel side 🙂

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

    you u got next level sarcasm

  • @premak813
    @premak813 7 лет назад

    Sir nice explanation... Please share me overall link of control statements notes

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

    thank you

  • @syedghouse1044
    @syedghouse1044 8 лет назад

    Hi Manish,
    Am following your videos, you are doing a great job buddy. Keep it up!
    I have a question,
    What if the user enter the input as 'amazon' instead of 'Amazon'' ??
    Will both produce the same output or different ?
    I know pl/sql is a case insensitive language but i am curious to know about my question....
    Thanks in advance,
    Syed Ghouse.

  • @brahimbakkas4568
    @brahimbakkas4568 5 лет назад +1

    it's clear that u r a DC fan hh
    just kidding nice course keep the the good work

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

      Only for wonder woman and Superman 🤫. Thanks for the appreciation.😊

  • @rafaelsantana8167
    @rafaelsantana8167 5 лет назад +1

    I like whe write the city Rio .. I am Brazilian!!

  • @mohammadshakil1387
    @mohammadshakil1387 7 лет назад

    Made a tutorial on Case statement

  • @hadisayyed1486
    @hadisayyed1486 4 года назад +1

    IF v_place='Dholakpur' THEN
    DBMS_OUTPUT.PUT_LINE('CITY IS PROTECTED BY CHOTA BHEEM');

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

    What will be the syntax of this nested IF when a table is provided....like ive to write a conditional statements for the salary in the table....

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

      N ya u do make sql interesting....thanks for these videos...😘

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

    MAN YOU REALLY MAKE BORING PLSQL FUN

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

    Error is showing on live.sql online platform... What to do? Not taking input from user

  • @harmanbawa19
    @harmanbawa19 7 лет назад

    thnks

  • @over-dose
    @over-dose Год назад

    I hope Avengers come to my help in exam 😢😢😢

  • @syednazurulislam3672
    @syednazurulislam3672 7 лет назад

    ha ha ha "plz call avengers"(good humour)

  • @HariKrishna-kc8sc
    @HariKrishna-kc8sc 6 лет назад

    old:DECLARE
    v_place varchar2(30):='&enter_place';
    BEGIN
    if v_place='Metropolis'then
    dbms_outout.put_line('city is protected by Superman');
    else if v_place='Gotman'then
    dbms_output.put_line('city is protected by batman');
    else if v_place='Amazon'then
    dbms_output.Put_line('city is protected by wonder woman');
    else
    DBMS_OUTPUT.PUT_LINE('Please call Avengers');
    end if;
    DBMS_OUTPUT.PUT_LINE('Thanks for contacting us');
    end ;
    new:DECLARE
    v_place varchar2(30):='Rio';
    BEGIN
    if v_place='Metropolis'then
    dbms_outout.put_line('city is protected by Superman');
    else if v_place='Gotman'then
    dbms_output.put_line('city is protected by batman');
    else if v_place='Amazon'then
    dbms_output.Put_line('city is protected by wonder woman');
    else
    DBMS_OUTPUT.PUT_LINE('Please call Avengers');
    end if;
    DBMS_OUTPUT.PUT_LINE('Thanks for contacting us');
    end ;
    Error starting at line : 2 in command -
    DECLARE
    v_place varchar2(30):='&enter_place';
    BEGIN
    if v_place='Metropolis'then
    dbms_outout.put_line('city is protected by Superman');
    else if v_place='Gotman'then
    dbms_output.put_line('city is protected by batman');
    else if v_place='Amazon'then
    dbms_output.Put_line('city is protected by wonder woman');
    else
    DBMS_OUTPUT.PUT_LINE('Please call Avengers');
    end if;
    DBMS_OUTPUT.PUT_LINE('Thanks for contacting us');
    end ;
    Error report -
    ORA-06550: line 14, column 5:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    if
    06550. 00000 - "line %s, column %s:
    %s"
    *Cause: Usually a PL/SQL compilation error.
    *Action:

  • @mahammadriyaznossam2042
    @mahammadriyaznossam2042 7 лет назад

    🙏🙏🙏

  • @HariKrishna-kc8sc
    @HariKrishna-kc8sc 6 лет назад

    set SERVEROUTPUT ON;
    DECLARE
    v_place varchar2(30):='&enter_place';
    BEGIN
    if v_place='Metropolis'then
    dbms_outout.put_line('city is protected by Superman');
    else if v_place='Gotman'then
    dbms_output.put_line('city is protected by batman');
    else if v_place='Amazon'then
    dbms_output.Put_line('city is protected by wonder woman');
    else
    DBMS_OUTPUT.PUT_LINE('Please call Avengers');
    end if;
    DBMS_OUTPUT.PUT_LINE('Thanks for contacting us');
    end ;
    /

  • @ticklypanda904
    @ticklypanda904 8 лет назад

    IF ELSEIF STATEMENT IS NOT GETTING OUTPUT.
    PLEASE CHECK THE OUTPUT:
    old:DECLARE
      v_Place VARCHAR2(30) := '&Enter Place';
     BEGIN
      IF v_Place = 'Metropolis' THEN
       DBMS_OUTPUT.PUT_LINE('This City Is Protected By Superman');
      ELSIF v_Place = 'Gotham' THEN
       DBMS_OUTPUT.PUT_LINE('This City is Protected By Batman');
      ELSIF v_Place = 'Amazon' THEN
       DBMS_OUTPUT.PUT_LINE('This City is protected by Wonder Woman');
      ELSE
       DBMS_OUTPUT.PUT_LINE('Please Call Avengers');
      END IF;
     DBMS_OUTPUT.PUT_LINE('Thanks For Contacting us');
     END;
    new:DECLARE
      v_Place VARCHAR2(30) := 'Metropolis Place';
     BEGIN
      IF v_Place = 'Metropolis' THEN
       DBMS_OUTPUT.PUT_LINE('This City Is Protected By Superman');
      ELSIF v_Place = 'Gotham' THEN
       DBMS_OUTPUT.PUT_LINE('This City is Protected By Batman');
      ELSIF v_Place = 'Amazon' THEN
       DBMS_OUTPUT.PUT_LINE('This City is protected by Wonder Woman');
      ELSE
       DBMS_OUTPUT.PUT_LINE('Please Call Avengers');
      END IF;
     DBMS_OUTPUT.PUT_LINE('Thanks For Contacting us');
     END;
    PL/SQL procedure successfully completed.
    PLEASE HELP ME.

    • @abhaysreekumar5084
      @abhaysreekumar5084 8 лет назад

      Metropolis Place is the input given so the output will be
      Please Call Avengers
      Thanks For Contacting us
      If the input given was 'Metropolis' then the output will be
      This City Is Protected By Superman
      Thanks For Contacting us

    • @NilanjanaLodh
      @NilanjanaLodh 8 лет назад

      set serveroutput on ;

    • @wittyyashy143
      @wittyyashy143 7 лет назад

      Tickly Panda :please try this in single quotes in line 4.. I was also getting same error earlier
      '&Enter_place_name'..
      Hope this helps!

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

    how to stop itteration on first occurance of vowel in a string
    mystr:= 'sdfg sky to axe';
    ????
    my o/p should be like
    s d f g s k y t

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

    Pls make vids in Hindi