SQL - Single Function01
SQL - Single Function01
Character -
Number
Date
Null
Misc
Conversion
functions will always come with bracket and within bracket one will write the
arguments
upper('manjari')
Character
Case
upper()
lower()
initcap()
Charcater
concat()
length()
substr()
instr()
lpad/rpad()
trim()
replace()
Number
round()
trunc()
mod()
Date
day_between()
add_months()
next_day()
last_day()
trunc()
round()
Null
nvl()
nvl2()
nullif()
coalesce()
Misc
Case
Decode()
select first_name,last_name
from employees
where upper(last_name)='GRANT'
select upper(first_name),upper(last_name)
from employees
where upper(last_name)='GRANT'
select first_name,length(first_name)
from employees
lpad/rpad (exp/col name which you want to pad ,how many character,'expression with
which you want to pad')
select trim(' ' from ' manjari prakash ') from dual