SQL Assignment
SQL Assignment
Assignment---------------------------
use SQL_Assignment
-----------------------------------------------------------------------------------
----------------------------------------------------------------------
------------------Tasks To Be Performed:
-- 1) Display the �FIRST_NAME� from Employee table using the alias name as
Employee_name.
-- 5) Display the unique values of DEPARTMENT from EMPLOYEE table and prints its
length.
-- 6) Display the FIRST_NAME and LAST_NAME from EMPLOYEE table into a single
column AS FULL_NAME. a space char should separate them.
-- 7) DISPLAY all EMPLOYEE details from the employee table order by FIRST_NAME
Ascending.
-- 9) Display details for EMPLOYEE with the first name as �VEENA� and �KARAN�
from EMPLOYEE table.
-- 12) DISPLAY details of the EMPLOYEES whose SALARY lies between 100000 and
500000.
-- 14) Display employee names with salaries >= 50000 and <= 100000.
-- 17) DISPLAY duplicate records having matching data in some fields of a table.
-- 24) Display the departments that have less than 4 people in it.
-- 25) Display all departments along with the number of people in there.
-- 26) Display the name of employees having the highest salary in each
department.
-- 27) Display the names of employees who earn the highest salary.
-- 29) display the name of the employee who has got maximum bonus
-- 30) Display the first name and title of all the employees