0% found this document useful (0 votes)
11 views

Assignment 3 Group Function

The document contains 16 SQL queries to perform operations on employee data like replacing letters in a string, displaying values for null fields, finding counts of employees by job type and department, calculating compensation amounts, and finding minimum and maximum salaries grouped and filtered in various ways.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Assignment 3 Group Function

The document contains 16 SQL queries to perform operations on employee data like replacing letters in a string, displaying values for null fields, finding counts of employees by job type and department, calculating compensation amounts, and finding minimum and maximum salaries grouped and filtered in various ways.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SQL Assignment – 3

1. Replace All ‘A’s from ‘MALAYALAM’ by E.


2. Display 0 for all employees whose commission is NULL.
3. Find total number of clerks.
4. Find the no. of employees working under different department.
5. Find total number of clerks joined after 01-jan-81’.
6. Find total of basis salary and commission.
7. Find the yearly compensation paid to all managers (12* (sal + NVL (comm, 0))).
8. Find the average salary of all salesmen.
9. Who is paid most in the company?
10. Display the name of the highest paid employees of each department.
11. Who comes first in the alphabetical order (MIN)?
12. Find the minimum salary of various categories of employees.
13. Find the maximum salary of the employees in various depts, Job wise
14. List the various categories of employees, depts. So that the maximum salary is
greater then 1500 (Group by job, dept).
15. Find the minimum and maximum salary of all managers in all depts.
16. Find the minimum salary of all managers in all depts. Where minimum salary is above
2500.

You might also like