0% found this document useful (0 votes)
37 views11 pages

CSD 2206 Exercises 31-40 Instructor: Faisal Khan 5 20 100 Marks 10% of 30 % Final Aggregate

This document contains instructions for 10 SQL exercises involving employee data. The exercises ask the student to write queries to display employee names, IDs, salaries, departments, jobs, locations, and other attributes based on various filtering criteria like employee ID, job designation, department, location, salary compared to other employees. The goal is to practice different types of SQL queries on an employee database.

Uploaded by

Labdhi Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views11 pages

CSD 2206 Exercises 31-40 Instructor: Faisal Khan 5 20 100 Marks 10% of 30 % Final Aggregate

This document contains instructions for 10 SQL exercises involving employee data. The exercises ask the student to write queries to display employee names, IDs, salaries, departments, jobs, locations, and other attributes based on various filtering criteria like employee ID, job designation, department, location, salary compared to other employees. The goal is to practice different types of SQL queries on an employee database.

Uploaded by

Labdhi Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

CSD 2206 Exercises 31-40 Instructor : Faisal Khan

5 * 20 = 100 Marks 10% of 30 % Final Aggregate


1-Write a query to display the name ( first name and last name ) for those
employees who gets more salary than the employee whose id is 163.
2-Write a query to display the name ( first name and last name ), salary,
department id, job id for those employees who works in the same designation as
the employee works whose id is 169.
3-Write a query to display the name ( first name and last name ), salary,
department id for those employees who earn such amount of salary which is the
smallest salary of any of the departments.
4-Write a query to display the employee name ( first name and last name ),
employee id and salary of all employees who report to Neena.
5) Write a query to display the employee name( first name and last name )

-- hiredate , department id for all employees in the same department as Clara.


6- Write a query to display the employee name( first name and last name ) and
hiredate for all employees in the same department as Clara. Exclude Clara.
7) Write a query to display the employee ID and name ( first name and last
name ) of all employees who works in such a department where the employees
are working whose first name containing a letter 'T'.
8) Display the employee name( first name and last name ), employee id, and job
title for all employees whose department location is Toronto.
9) Write a query to display the employee id, name( first name and last name ) and
job title for all employees whose salary is smaller than any salary of those
employees whose job title is MK_MAN.
10) Write a query to display the employee id, name( first name and last name )

--and job title for all employees whose salary is more than any average salary of any department.

You might also like