You are on page 1of 3

UNIVERSITI TEKNOLOGI MARA

KAMPUS SEREMBAN

CAWANGAN NEGERI SEMBILAN

FACULTY OF COMPUTER AND MATHEMATICAL SCIENCES

ICT501

DATABASE MANAGEMENT SYSTEM

TITLE

Exercise 5 (GROUP FUNCTIONS)

PREPARED BY STUDENT ID
NUR HAZIERA BINTI BAHAR 2019608162
NUR NAJIHAH BINTI HASAN 2019695876
SITI NOR SYUHADA BINTI BAHREN 2019726063
SITI NUR AFIFAHALIN BINTI MOHD JAINUDDIN 2019853948

PROGRAMME: CS241 – BACHELOR OF SCIENCE (HONS) STATISTICS

CLASS: N4CS2413T2

PREPARED FOR: SIR SHAMSUDIN MD SARIF

SUBMISSION DATE: 14th NOVEMBER 2019


Exercise 5: Group Functions

1. Find the minimum salary of all employees.

2. Find the minimum, maximum, and average salaries of all employees.

3. List the minimum and maximum salary for each job type.

4. Find out how many managers there are without listing them.

5. Find the average salary and average total renumeration for each job type. Remember salesmen
earn commission.
6. Find out the difference between highest and lowest salaries.

7. Find all departments which have more than 3 employees.

8. Check whether all employee numbers are indeed unique.

9. List lowest paid employees working for each manager. Exclude any groups where the minimum
salary is less than 1000. Sort the output by salary.
Answer:

You might also like