Tutorial#40 NVL Function in oracle SQL with example

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

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

  • @atkuriajaykumar3701
    @atkuriajaykumar3701 4 года назад +4

    You deserve more views sir

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

    Thank you sir.

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

    Thankyou sir

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

    Sir can u make once again nvl video

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

    Hi sir, Why NVL is working on commission_pct column in employees table?

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

      every time it shows error :- invalid number

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

      select NVL(to_char(commission),'xxxx') from employees; u can use like this because commition is number and vvl works on character/varchar column only

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

      @@EqualConnectCoach but you haven't shown it in your video then how would we know

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

      If has null value it will work what is ur specific question

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

    What if there are more than one null in a column and we have to assign different values that null

  • @shamyumanoharan7217
    @shamyumanoharan7217 6 лет назад +2

    Can u pls post answers for 1st and 2nd questions sir😊

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

      Select nvl(commition, "null value available" from emp where firstname like 'S%'; u can do like that for others

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

      EqualConnect Coach thanks sir

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

    select commission_pct , first_name ,NVL(commission_pct,'Null Found')
    from employees
    where employee_id in (100, 101, 102, 103) ; . I have written this query for the first question
    , i am getting error like invalid number please sugest

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

      ,NVL(commission_pct,'Null Found') check this, in respect of datatype

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

      If the column is a number value then you will need to give it a number expression such 0
      select
      commission_pct,
      NVL(commission_pct, 0)
      from
      employees;
      In order to avoid this, you will need to convert the commisson_pct column as a character for example:
      select
      commission_pct,
      NVL(to_char(commission_pct, '9.9'), 'Null Value')
      from
      employees;
      This will return all the NULL values as 'Null Value'.

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

    Sir plz explain nvl2 also

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

    Pls tell for 3 nd 4 sir

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

      in 3rd ,U have to tell output of that query and in 4th questions : display the salary from emp table and increase/decrease salary by 5

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

      @@EqualConnectCoach
      5) select employee who hired after 2003.
      Select employee from employees
      Where hire_date > to_date
      (" 31-dec-2003"," dd-mm-yyyy ");
      Is this right ?

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

    thats very irritating into af

  • @vishalugale2719
    @vishalugale2719 4 года назад +2

    don't do chutiya kind of things while recording video like over reacting