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
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'.
@@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 ?
You deserve more views sir
thanks
Thank you sir.
Thankyou sir
Sir can u make once again nvl video
Hi sir, Why NVL is working on commission_pct column in employees table?
every time it shows error :- invalid number
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
@@EqualConnectCoach but you haven't shown it in your video then how would we know
If has null value it will work what is ur specific question
What if there are more than one null in a column and we have to assign different values that null
it will replace all the null value of that column
We can use nvl2 function
Can u pls post answers for 1st and 2nd questions sir😊
Select nvl(commition, "null value available" from emp where firstname like 'S%'; u can do like that for others
EqualConnect Coach thanks sir
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
,NVL(commission_pct,'Null Found') check this, in respect of datatype
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'.
Sir plz explain nvl2 also
sure
Pls tell for 3 nd 4 sir
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
@@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 ?
thats very irritating into af
don't do chutiya kind of things while recording video like over reacting