Practical File DBMS
Practical File DBMS
Name of Faculty: Dr. Shambhu Kumar Jha Student Name: Sagar Sharma
Designation: Assistant Professor Roll No: A1004821111
Institute: AIIT Course: BCA
PRACTICAL RECORD
PRACTICAL DETAILS
Date of Date of
S.No. Experiment Name Remarks
Performance Checking
1. Create a table “PRODUCTS” with following 9/8/22
structures:
2. Consider following table and write SQL Commands 16/8/22
for the following:
3. Create table EMP and DEPT. 17/8/22
WORKS(Pname,Cname,Salary)
LIVES(Pname,Street,City)
LOCATED_IN(Cname,City)
MANAGER(Pname,Mgername)
Where Pname=Person name, Cname= Company name and Mgrname = Manager name.
a) List the names of the people who work for the company Wipro along with the cities
b) Find the people who work for the company “Infosys” with a salary more than Rs.
50000/-. List the names of the people , along with the street and city
addresses.
c) Find the names of the persons who live and work in the same city.
d) Find the names of the persons who dod not work for “Infosys”.
e) Find the persons whose salaries are more than that of all of the “Oracle” employees.
f) Find the names of the companies that are located in every city where the company
“Infosys” is located.
PRACTICAL 3
EMP Table
DEPT Table
PRACTICAL 4
(b) Display only the jobs with maximum salary greater than or equal to 3000.
(c) Find all those employees whose job does not start with ‘M’.
(d) Find the names of the employees whose name start with ‘S’.
(e) Find the names of employees who are managers and their date of joining
is after “02-JAN-2006”.
(f) For describing the structure of the EMP table and DEPT table.
(g) For getting the average salary of employees from EMP table.
(h)For displaying the current date and give the column a name “DATE”.
(i) For converting the name of employee into uppercase where the
employee’s name is “Santy”.
(j) Create a sequence with name SEQ_EMP, which will generate numbers
from 1 to 99 in ascending order with an interval of 1. The sequence must
start from 1 after generating the number 99.
(k) Displaying the names of the employees who have an a and e in their
names.