0% found this document useful (0 votes)
15 views7 pages

Lab 6

This document outlines the tasks for a Database Lab for the 4th semester BSSE students at the National University of Modern Languages. It includes a series of SQL queries that students are required to create, focusing on employee data such as names, salaries, departments, and hiring dates. The tasks emphasize filtering, sorting, and displaying specific employee information based on various conditions.

Uploaded by

Ahmed Mehmood
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)
15 views7 pages

Lab 6

This document outlines the tasks for a Database Lab for the 4th semester BSSE students at the National University of Modern Languages. It includes a series of SQL queries that students are required to create, focusing on employee data such as names, salaries, departments, and hiring dates. The tasks emphasize filtering, sorting, and displaying specific employee information based on various conditions.

Uploaded by

Ahmed Mehmood
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/ 7

NATIONAL UNIVERSITY OF MODERN LANGUAGES

DEPARTMENT OF SOFTWARE ENGINEERING

BSSE 4th SEMESTER

Database
LAB # 06

PRESENTED BY:

Ahmed Mehmood (RCF30145)

PRESENTED TO:

Ms. Sehrish Ferdous.


LAB TASKS

1. Create a query to display the employee name and salary of employees


earning more than $1800.

2. Create a query to display the employee name and department number of for
employee number 7900.

3. Display the employee name and salary for all employees whose salary is not
in the range of $500 and $1200.
4. Display the employee name, job, start date of employees hired between 20
February 1981 and May 1, 1982. Order the query in ascending order by start
date.

5. Display the employee name and department number of all employees in


department 20 and 30 in alphabetical order by name.
6. List the last name and salary of employees who earn between $1000 and
$2000 and are in department 10 or 30. Label the columns Employee and
Monthly Salary, respectively.

7. Display the employee name and hire date of every employee who was hired
in 1982.
8. Display the employee name and job title of all employees who do not have a
manager.

9. Display the last name, salary, and commission for all employees who earn
commissions. Sort data in descending order of salary and commissions.

10.Display all employee names of all employees where the third letter of the
name is ‘a’.
11.Display the employee name of all employees who have an ‘a’ and ‘e’ in their
name.

12.Display the employee name, job and salary for employees whose job title is
entered by the user and whose salary is not equal to $1000, $1200, $1800.
Also sort the data according to the column name entered by the user.

13.Display the employee name, salary, and commissions for all employees
whose commission amount is 20%.
14.Display the employee name, salary of all employees whose condition of
salary is entered by user. Sort the data in descending order according to the
salary.

You might also like