DATABASE MANAGEMENT SYSTEM
Name of Faculty: Dr. Shambhu Kumar Jha Student Name: Sagar Sharma
Designation: Assistant Professor Roll No: A1004821111
Institute: AIIT Course: BCA
AMITY INSTITUTE OF INFORMATION TECHNOLOGY
AMITY UNIVERSITY UTTAR PRADESH, NOIDA
Session: July 2022 – December 2022 (Odd Semester)
INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS
PRACTICAL RECORD
PAPER CODE : CSIT132
Name of the student : SAGAR SHARMA
University Roll No. : A1004821111
Course : BCA
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
4. Insert the values into EMP table. 23/8/22
5. Considering EMP table write the queries. 23/8/22
PRACTICAL - 1
Aim: 1) Create a table “PRODUCTS” with the below mentioned structure:
Product ID NUMBER(11)
Supplier ID NUMBER(11)
Category ID NUMBER(11)
Quantity Per Unit VARCHAR2(20)
Unit Price NUMBER(11)
Units In Stock NUMBER(11)
Units On Order NUMBER(11)
Product ID should be the Primary Key.
PRACTICAL - 2
2) Consider the following tables:
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.
Write the SQL for the following:
a) List the names of the people who work for the company Wipro along with the cities
they live in.
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
Aim: Create table EMP and DEPT.
EMP Table
DEPT Table
PRACTICAL 4
AIM: Insert the values into EMP table.
(a) Insert into EMP
PRACTICAL 5
AIM: Considering EMP table write the queries.
(a) Find out the number of employees having “manager” as job.
(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.