Oracle interview question difference between null functions | NVL vs NVL2 vs NULLIF vs COALESCE

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

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

  • @santoshadhikari9933
    @santoshadhikari9933 2 года назад +5

    These 4 5 7 minutes videos are better than reading hours and hours or going through 20 mins videos

  • @RameshYadav-ei3kd
    @RameshYadav-ei3kd 4 года назад +6

    I want this type of explanation to all concepts.....thanq.....

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

    Complex concepts easy explanation thanks sir keep making such types of videos that helps to many students

  • @vivektarab1959
    @vivektarab1959 Месяц назад

    1:06 - NVL - Means NVL will return the 1st Not Null Expression with only 2 inputs
    2:02 - In Case both values are NULL
    2:45 - NVL 2
    4:25 - NULLIF
    5:52 - Coalesce

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

    1:06 - NVL
    2:02 - In Case both values are NULL
    2:46 - NVL 2
    4:25 - NULLIF
    5:52 - Coalesce

  • @i.ashokreddy8548
    @i.ashokreddy8548 2 года назад

    explanation is awesome and the way of teaching is very good to uderstand for the beginner

  • @bharathipandian45
    @bharathipandian45 5 лет назад +4

    Hi siva, I have got few more questions 1. Difference between local and global index 2. Before we go for partitioning table what are the things we should analyse 3.where should I declare a procedure which should not be accessed by anyone 4. How to dynamically pass parameters to one cursor from another cursor

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

      @Bharathi, it's difficult to explain all of this in few lines, however I try my level best to answer in upcoming video

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

    Hi sir your explanation is very well on each and every video and thank you very much to share with all

  • @devanaidu9406
    @devanaidu9406 5 лет назад +5

    Please make partitions, cluster's and ,inline view concepts in detailed sir

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

    Thanks a lot.. very informative and easy to learn..

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

    Very useful information.. Thanks for this video

  • @satrinakelley-jordan6418
    @satrinakelley-jordan6418 2 месяца назад

    Great explanation, thank you!

  • @dineshkumar-vp9dm
    @dineshkumar-vp9dm 4 года назад

    What is different between varchar2 and varchar explain

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

    very helpful information hatsoff sir

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

    Write a query to display Salesid , SalesNo ,discount ,price of a mobile. if there is no discount for a mobile the display it as"not applicable"......use COALESCE function...!Sir can u help me with this query?

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

    Thank you so much for good explanation video...!!

  • @nishikishore
    @nishikishore 29 дней назад

    What will be the result of below query :
    Select nvl('',A) as result from dual;

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

    Great explantions sir this content helped in interviews superbbb 😊😎

    • @SivaAcademy
      @SivaAcademy  3 года назад +1

      My pleasure 💐💐👍🙏

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

    Please let me know how many parameters can we put in the COALESCE, GREATEST and LEAST functions ?

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

    Nice videos.
    Please include
    NULLIF(NULL, NULL)
    in this video.
    Obviously, the result we know based on previous example but it would be nice to include that.

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

      Sure, for subsequent videos I will add all possible scenarios 👍

    • @m.s.k5300
      @m.s.k5300 4 года назад

      Result null

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

      It throw inconsistent datatype..thumb rule for nullif is first parameter should not be null

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

    As always in detail supeerrb !!!!

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

    Thank you Sir, for your great explanation of these functions.

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

    excellent videos thank you sir

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

    can we get this as pdf ?

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

    Hi Thank you for the so much informative videos.. I was asked a question in interview about difference between varchar and varchar2 datatype in oracle. Can you explain the difference please?

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

    Hi sir, can you explain how to show nulls in all columns if I don't have queried data in a table.

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

      Union with select null as col1, select col2 from dual

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

    I need unix interview question ans production support related interview questions

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

    What is the result of NULLIF( NULL,NULL)
    since two nulls are not equal

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

      As he said First argument should not have null. If so it throws error

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

    Could you please make video on DBMS_parallel_execute and DBMS_jobs procedure.

  • @mupparthiuma5798
    @mupparthiuma5798 4 года назад

    hi sir..can you take online classes
    ?

  • @ravipatisrikanth8331
    @ravipatisrikanth8331 4 года назад

    select coalsce('siva',1,2,3,4,5) as result from dual; why this one is not execute , tell me the reason

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Data type of all the parameters should be consistent,
      try this query
      select coalesce('A','1','2','3','4','5') from dual;

    • @ravipatisrikanth8331
      @ravipatisrikanth8331 4 года назад

      Thank you so much

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

    good
    please make video on performance tuning

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

      Thanks Sagar, Ya I am in process of creating PT with right examples, WIll be posting soon.

  • @kalpeshpatil4321
    @kalpeshpatil4321 4 года назад

    Can you please make a video on regular expression and type of regular expression with small example in easy way to get it understand.
    It will be very thankful, if you make video on this.
    Thanks in advance cheers.

  • @pritisingh8639
    @pritisingh8639 4 года назад

    Nice video ...very well explained

  • @yuvrajb4696
    @yuvrajb4696 Год назад +1

    Jay Ho Jay Hind 🇮🇳

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

    Thank you som uch for the easy explanation

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

    Managements wants to know the manager of each resort.
    Display resortid , resort name, manager name and his phone. Sort the output in ascending order of resort id. Give alias to manager name as MANAGERNAME and phone as PHONENO.
    If manager is not available then display manager name 'NA'. If phone number is not available then display as 'NA'.
    Sir can I get an answer for this please

    • @SivaAcademy
      @SivaAcademy  4 года назад +3

      select resortid , resort_name, nvl(manager_name,'NA') as "MANAGERNAME" , nvl(phone,'NA') as "PHONENO"
      from table_name
      order by resortid asc

  • @udayreddybarri6642
    @udayreddybarri6642 4 года назад

    What is difference between for and forall

    • @SivaAcademy
      @SivaAcademy  4 года назад

      Sure, please stay tuned, will add new video for this

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

    in real time projects , where its been used.Please xplain bro

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

      @Anandhi, "NVL", and "coalesce" functions are widely used, and most of the SQL developers would have used it day to day sql queries, however nullif and nvl2 are rarely used, depends on the functionality.
      NVL - will be used when ever you want to have a default value for nulls, for eg, if the date is null, you can consider sysdate as default value.
      coalesce - To get the fist not null expression in the given list of values, for eg, NVL( mobile_no1,mobile_no2, LAN_LINE_NO, fax_no,0), to get the fist not null value of given list of contact numbers.....

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

    Nice understanding sir

  • @niranjandhavalikar
    @niranjandhavalikar 4 года назад

    Thank You!!! Amazing explanation

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

      Thanks for your comments 🙏 🙏🙏

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

    Best Explanation!

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

    Thank you so much Sir for your information

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

    Hi sir Please make partitions, cluster's and ,inline view concepts in detailed asap sir

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

    very good explanation

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

      @Saptarishi, Thanks for your comment :-), --Siva

  • @sureshraina321
    @sureshraina321 4 года назад

    you nailed it sir thank you sir

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

    Nice explained

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

    Nice

  • @udayreddybarri6642
    @udayreddybarri6642 4 года назад

    Pls send for and forall

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

    thnkx a lot

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

    I need unix interview question ans production support related interview questions