Professional Documents
Culture Documents
Punjab University College of Information Technology (Pucit) : Database Systems Lab 4
Punjab University College of Information Technology (Pucit) : Database Systems Lab 4
Punjab University College of Information Technology (Pucit) : Database Systems Lab 4
Date: 29-03-2017
Instructions:
Objectives:
1. Give names of employees as “Names” and 20% increased salary as “Incremented Salary” of all
employees in ascending order and round incremented salary to 2 decimal places.
4. Give names of employees as “Employee Names”, hire date as “Hiring Date”, number as
“Employee Number”, names of departments as “Department Name” of all employees
that has manager not managers 7698 and 67839 show data in ascending order on
employee number basis.
Teaching Assistants: Instructor:
• Sonia Hayat – BSEF14M515
• Abdul Moid – BSEF14A524 Farhan Ahmad Ch.
5. Give names of employees as “Employee Names”, their salary as “Original Salary”, 20%
increased salary as “Incremented Salary” and the amount of increment as “Increment” of
each employee whose manager is not null and show data in ascending order on salary
basis and names should be in small letters.
6. Give names of employees as “Employee Name”, hire date as “Hiring Date”, location as
“Location”, number of characters in location as “Length of Characters in Location” and
the 4th letter of name of employee as “Employee
7. 4th Letter” of all employees who have department number greater than 10.
9. Give location of employees as “Location”, high salary of grade as “High Salary”, low
salary of grade as “Low Salary” of all employees but both salaries should be in 8 digits
long, apply left padding with ‘*’ to complete 8 digits.
10. Give jobs as “Jobs”, names as “Employee Names”, location as “Department Location”
and grade as “Salary Grade” of all employees who have department number multiple of
10.
11. Give current date as “Today Date”, hire date as “Hiring Date”, the total number of weeks
from hire date as “Total Weeks” the total number of months from hire date as “Total
Months” of all employees.
12. Give names as “Employee Names”, hire date as “Hiring Date”, add 8 months in every
hire date of employee as “8 Months Added” and the date of the first Monday after hiring
date as “First Working Week” of all employees.
13. Give hire date as “Original Hire Date”, hire date in format ‘22 November 2014’ as “Date
Format.1” and also in format ‘Twenty Second of November 2014, 12:00 PM’ as
“Format.2” of all employees whose commission is not null.
14. Run the following commands and understand their working. Ask us in case of help.
Best of Luck