Database Management Systems - Lab
Database Management Systems - Lab
Course Outcome
After Learning the Course the students shall be able to:
1. Understand basic concepts of Database.
2. Understand Relational Models and its importance.
3. Build proper structured database for a given problem or application.
4. Learn how various transactions are managed in real-time scenarios.
5. Understand the evaluation parameters of a query as well as security parameters of database.
6. Implement SQL concepts to build dynamic database applications.
Practical – 1
1. What is DBMS? Explain advantages of DBMS over FPS.
2. List 15 applications of Database. Explain any 2 how Database can be helpful in managing that application?
3. Create the Database for the following:
A. Student Details using Excel.
B. Employees Details using MS Access.
C. Facebook using Excel.
Practical – 2
Create following Tables:
Important Instructions:
• Use varchar2(30) datatype for Alphanumeric Characters and Special Symbols, number datatype for Numbers, date
datatype for Date.
• Use same table and column name (Capital and Small Case) as mentioned in this file.
• Insert proper data (Capital and Small Case) as mentioned in this file.
Employee
Emp_name Street City
Adam Spring Pittsfield
Brooks Senator Brooklyn
Curry North Rye
Demalo SunShine San Deago
Work
Emp_name Cmp_name Salary
Adam FBC 20000
Brooks MBC 30000
Curry SBC 10000
Company
Cmp_name City
FBC Pittsfield
MBC Brooklyn
SBC Rye
Manager
Emp_name Man_name
Adam Smith
Brooks Jones
Curry Hayes
Page 2 of 2
Subject Syllabus
Database Management Systems Laboratory
Sailors
Sid Sname Rating Age
22 Dustin 7 45.0
29 Brutus 1 33.0
31 Lubber 8 55.5
32 Andy 8 25.5
58 Rusty 10 35.0
64 Horatio 7 35.0
71 Zobra 10 16.0
74 Horatio 9 35.0
85 Art 3 25.5
95 Bob 3 63.5
Reserves
Sid Bid Day
22 101 10 -oct- 98
22 102 10 -oct- 98
22 103 10 -aug 98
22 104 10 -jul- 98
31 102 11 –oct- 98
31 103 11 –jun- 98
31 104 11 –dec- 98
64 101 9 –may- 98
64 102 9 – aug- 98
74 103 9 –aug- 98
Boats
Bid Bname Color
101 Interlake Blue
102 Interlake Red
103 Clipper Green
104 Marine Red
Client
Cl_no Name City Pincode State Baldue
C00001 Ivan Bayross Mumbai 400054 Maharashtra 15000
C00002 Mamta Muzumdar Madras 780001 Tamil Nadu 100
C00003 Chhaya Bankar Mumbai 400057 Maharashtra 5000
C00004 Ashwini Joshi Bangalore 560001 Karnataka 500
C00005 Hansel Colaco Mumbai 400060 Maharashtra 2000
C00006 Deepak Sharma Mangalore 560050 Karnataka 1000
Page 3 of 2
Subject Syllabus
Database Management Systems Laboratory
Product
Pr_no Dscr Profit Unit Qty Reorder_Lvl Sell_Price Cost_Price
P00001 T-Shirts 5 Piece 200 50 350 250
P0345 Shirts 6 Piece 150 50 500 350
P06734 Cotton Jeans 5 Piece 100 20 600 450
P07865 Jeans 5 Piece 100 20 750 500
P07868 Trousers 2 Piece 150 50 850 550
P07885 Pull Overs 3 Piece 80 30 700 450
P07965 Denim Shirts 4 Piece 100 40 350 250
P07975 Lycra Tops 5 Piece 70 30 300 175
P08865 Skirts 5 Piece 75 30 450 300
Salesman
Sl_no Name Add1 Add2 City Pin State Amt Tgt Sales Rem
S00001 Aman A/14 Worli Mumbai 400002 Maharashtra 3000 100 50 Good
S00002 Omkar 65 Nariman Mumbai 400001 Maharashtra 3000 200 100 Good
S00003 Raj P-7 Bandra Mumbai 400032 Maharashtra 3000 200 100 Good
S00004 Ashish A/5 Juhu Mumbai 400044 Maharashtra 3500 200 150 Good
Salesorder
Od_no Cl_no O_dat Sl_no D-Type Bill D_dat Status
O19001 C00001 12-JUN-04 S00001 F N 20-JUL-04 In Process
O19002 C00002 25-JUN-04 S00002 P N 27-JUN04 Cancelled
O46865 C00003 18-FEB-04 S00003 F Y 20-FEB-04 Fulfilled
O19003 C00001 03-APR-04 S00001 F Y 07-APR-04 Fulfilled
O46866 C00004 20-MAY-04 S00002 P N 22-MAY-04 Cancelled
O19008 C00005 24-MAY-04 S00004 F N 26-JUL-04 In Process
Salesorder_Details
Od_no Pr_no Qty_order Qty_disp Rate
O19001 P00001 4 4 525
O19001 P07965 2 1 8400
O19001 P07885 2 1 5250
O19002 P00001 10 0 525
O46865 P07868 3 3 3150
O46865 P07885 3 1 5250
O46865 P00001 10 10 525
O46865 P0345 4 4 1050
O19003 P0345 2 2 1050
O19003 P06734 1 1 12000
O46866 P07965 1 0 8400
O46866 P07975 1 0 1050
O19008 P00001 10 5 525 Page 4 of 2
Subject Syllabus
Database Management Systems Laboratory
Deposit
Act_ no Cname Bname Amount Date
Borrow
Loanno Cname Bname Amount
201 ANIL VRCE 1000.00
206 MEHUL AJNI 5000.00
311 SUNIL DHARAMPETH 3000.00
321 MADHURI ANDHERI 2000.00
375 PRMOD VIRAR 8000.00
481 KRANTI NEHRU PLACE 3000.00
Branch
Bname City
VRCE NAGPUR
AJNI NAGPUR
KAROLBAGH DELHI
CHANDI DELHI
DHARAMPETH NAGPUR
M.G.ROAD BANGLORE
ANDHERI BOMBAY
VIRAR BOMBAY
NEHRU PLACE DELHI
POWAI BOMBAY
Customers
Cname City
ANIL CALCUTTA
SUNIL DELHI
MEHUL BARODA
MANDAR PATNA
MADHURI NAGPUR
PRAMOD NAGPUR
SANDIP SURAT
SHIVANI BOMBAY
KRANTI BOMBAY
NAREN BOMBAY
Page 5 of 2
Subject Syllabus
Database Management Systems Laboratory
(1) Display all the employee name and the city where they work.
(2) Display the employee name and company’s name having salary more than 15000.
(3) Find the average rating and age of all sailors.
(4) List various products available.
(5) Display the names of salesman who have salary more than 2850.
(6) Change the cost price of Trousers to 950
(7) List all the clients having “a” as a second character in their names.
(8) List all the products whose QtyonHand is less than Reorderlvl.
(9) Print the description and total qty sold for each product.
(10) Find out all the products which have been sold to “Ivan Bayross”.
(11) Find the names of all clients who have purchased Trousers.
(12) Find the products and their quantities for the orders placed by client C00001 and C00002.
(13) List the client details who place order no. O19001.
(14) List the name of clients who have placed orders worth Rs. 10000 or more.
(15) Find the total of Qty ordered for each Order.
Page 8 of 2