SQL Query Online Test

 

SQL Query Test

 

Consider the following table.

Staff_NO

Emm_Name

Position

Gender

Salary

Branch_NO

SL41

Jhon

Manager

M

30000

D005

SG5

Clark

Supervisor

M

23000

D007

SA9

Mark

Asistant

M

18000

D005

SG14

Tina

Manager

F

9000

D006

SG37

Adam

Clerk

M

24000

D005

SL21

Julie

Asistant

F

18000

D007

SA56

Smith

Clerk

M

12000

D007

 

👉Write a query to Retrieve the List of salaries of all employees arranged in descending order of salaries.

👉Write a query to find the Minimum, Maximum and Average salary of Staff.

👉Write a query to find the number of Staff members working in each Branch and Sum of their salaries.

👉Write a query to find the  Branch office with more than one staff member.

ANSWER KEY

Comments

Popular posts from this blog

SQL statements (Data Manipulation Language)

What is SQL

Types of joins in SQL Equi and Non_Equi join