SQL Question
SQL Question
Assignment 3
(1) Display all employees having a as the second letter in their names.
(2) Display employee names for those who joined in the month of june.
(3) Display names of all employees in alphabetic order.
(4) Find the average salary of all employees.
(5) Display employee names and department names of all employees who belong to Madras or
Kolkata or Bombay .
(6) List all the employee names whose basic as greater than 7000 and less than 18000
(7) Display list of all employees in dept no 2
(8) Display the no of employees in each department
(9) List only the names of all other employees who get the same basic as that of employee Tamal
(10) Display the joining date of all employees in dd/mm/yy format
(11) Find all departments which have more than 3 employees.
(12) Find the difference between highest and lowest salary
(13) Display the structure of table EMP.
(14) Display employee no employee name and basic pay for employees with lowest salary
(15) List the names and salary of all employee sorted by salary
(16) Display the list of all employees who were hired during 2002
(17) Display employee name and basic pay for all employees who were engaged with at least one
project.
(18) List no. of projects undertaken in Dept 1
(19) Display the names of all employees who are engaged in 2/more projects
(20) List of all employees who have salary between 2000 and 4000
(21) List the details of all employees in department number 1 & 2.