Assignment-3 (Assignments)
Assignment-3 (Assignments)
(week#5)
(Explain Aggregate functions such as COUNT, AVG, SUM, MAX and MIN also explain use
of Group by with having clause)
(Queries are based on Date operator/function, Aggregate function and Group By Having clause)
4. Display name & hire date of all faculties of ECE department as below
ENAME DATE_HIRED
----------- -------------------------------
SMITH December, Seventeen 1981
JONES Aril, Second 1982
………….. …………..
DAVID August, Third 1983
6. List the details of the faculties whose Daily Sal is more than Rs.100.
7. List the faculties in the ascending order of Designations of those who joined in the first half
of 1981.
10. List the faculties of department ECE whose salary is greater than the salary of ALLEN.
11. List the details of the faculties who are senior to JONES and junior to SMITH.
12. Find details of the faculties who earn more than average salary of department CSE.
14. Find the minimum, maximum and average salaries of all faculties.
18. SQL to calculate the average salary for each different post category.
24. Calculate department wise total salary management has to pay for their faculties.
25. Find the department number where departmental average salary is greater than average
salary of all faculties of the organization.
27. Count post wise number of faculties in descending order of each department.