single row functions-1st (3) (3)
single row functions-1st (3) (3)
Upper
lower
Initcap -Steven
2)General functions
a) Greatest
b)least
c)Concat
d)Unique/distinct
e)first
f)last
3)Null function
a)Round
b)trunc
c)power
d)sqrt
e)abs
f)sign
g)mod
h)ceil
i)floor
Date Functions:-
1)Add_months
2)Months_between
3)Next_day
4)Last_day
5)String function
6)Control statements
7)Date functons
8)Date conversion functions
___________________________________________________________________________________
_____________________________________
1)What is a database?
5) Fetch the names of the employees whose salary is below 10000 and above 15000?
SELECT first_name, last_name, salary, department_id
FROM employees
WHERE salary NOT BETWEEN 10000 AND 15000;
6)Fetch the names of the employees whose salaries are 17000,10000 and 24000
respectively?
9)Fetch the names of the employees whose name starts with 'N' and ends with 'y'?
10)Fetch the employee whose name is David and is earning 9500rs?
2)Functions:-
==============
1.Display the outputs by taking scenarios from employees table and apply several
null functions?
6.Fetch the names of the employees who have joined in the month of september?
7.Fetch the names of the employees who have joined in the month of Aug94?
GROUP FUNCTION:
1.Fetch the no.of salaried employees in each department?
Select deptno,count(*) from emp group by deptno;