0% found this document useful (0 votes)
128 views3 pages

Punjab University College of Information Technology (PUCIT) : Database Systems Lab 4

This document provides instructions for a database systems lab assignment. Students are instructed to not consult classmates, carefully read query statements, and solve 10 queries by pasting screenshots of outputs into a word file. The queries involve retrieving employee data from tables based on various conditions on name, department, age, salary, hire date and other fields. Rolls numbers and submission details are provided. The document ends by providing the instructor and TA names.

Uploaded by

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

Punjab University College of Information Technology (PUCIT) : Database Systems Lab 4

This document provides instructions for a database systems lab assignment. Students are instructed to not consult classmates, carefully read query statements, and solve 10 queries by pasting screenshots of outputs into a word file. The queries involve retrieving employee data from tables based on various conditions on name, department, age, salary, hire date and other fields. Rolls numbers and submission details are provided. The document ends by providing the instructor and TA names.

Uploaded by

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

Punjab University College of Information Technology (PUCIT)

Database Systems Lab 4

Instructions:
• You’re NOT allowed to consult your classmates during lab work. Of
course, it won’t go in your benefit.
• First read the query statement carefully before solving it as half of the
solution lies in question statement.
• In case of any ambiguity, benefit will be given to the students.
• Lab has total 10 question. Each Question carries equal marks.
• Solve the queries on the link provided as under and paste the
screenshots of your outputs with query code in separate word file.
ORQL FOR IBA|HOME (ibapu.edu.pk)
Credentials:
Username: Farhan
Password: 12345
• The lab must be sent according to table given below, otherwise it will
not be accepted and will be marked ZERO.

Roll Number Recipient Email Subject


501 – 522 [email protected] Lab04

523 – 545 + ADD DROP [email protected]


BS-CS Afternoon Fall-19 (New Campus)
Date: 26-03-2021

1. Run this query and tell the problem in this query. After that, run it with your
correction.
SELECT EMPNO, ENAME
FROM EMP
WHERE ENAME IS LIKE ‘cle%’
ORDER BY EMPNO;
2. Display all the employee number, name, and department number with a condition that
age less than 50 and name start with character S.

3. Write a SQL Query to show the names of all employees and hire date of employees
whose names starts with A or S where department no is greater than 10.

4. Display the dept no, name, manger no, age, hire date of employees and new date after
adding 3 months in hire date of each employee and name it as ‘new Update Date’.

5. Write a query to display the employee’s name and also display their salary and hire date
of all the employees whose age is greater than 50 or salary is less than 20000.
6. Calculate the salary of employee after it is divided by 200, name it as “Updated salary”
for all employees whose hire date is in between 20-FEB-1981 and 20-FEB-1985 or job
title is “manager” and sort it by “Updated salary”.

7. Write a SQL Query to show the names of all employees and hire date of employees
whose name does not start with A or S where department no is not greater than 10.

8. Display the emp no, name, manger no, salary and hire date of employee, whose name
starting with ‘g’ or ‘a’ or ‘w’ or “s”.
9. Give a Query to show the salary and hire date of such employees whose names end
with ‘N’ or hire date includes Feb as Month.

10. Display employee names of only those employees who has “a” or “s” as second
character and only three characters after it.

Best of Luck
Instructor:
• FARHAN AHMAD CH.
Teacher Assistants:
• AIMAN FIAZ BCSF17M550
• HURAIRA IRFAN BSEF17A531

You might also like