0% found this document useful (0 votes)
1 views

DBMS LAB IPU Assi.

Lab assignment

Uploaded by

Vanshika
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

DBMS LAB IPU Assi.

Lab assignment

Uploaded by

Vanshika
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 36

[1]

(Affiliated to)
GURU GOBIND SINGH INDRAPRASTHA
UNIVERSITY
SECTOR – 16 C, DWARKA, NEW
DELHI

DBMS Practical File

Submitted To: Dr. Manjot Bhatia


Submitted By: vanshika kasera
Enrollment No.: 70314004423
Mca 1st year
Shift 1
Section B
[2]

ACKNOWLEGEMENT

I take this opportunity to present my votes of thanks to my faculty who

really acted as pillars to help my way throughout the execution of lab

exercises that has led to successful and satisfactory completion of the

study of Subject (Database Management System).

I feel great sense of gratitude for Dr. Manjot Bhatia under whose

guidance and motivation this work has been performed.

I would also like to express my thanks to all lab assistants for giving me

opportunity to work under their esteemed guidance. This project would

not have completed without their guidance and coordination.

The inspiration of the faculty members of the Information Technology

Department of JIMS Rohini (Sec-5) enabled me to make a thorough

study of these subjects.

Student’s Name: vanshika kasera

Enrolment No.: 70314004423


[3]

CERTIFICATE

This is certified to be the bona fide work of vanshika kasera vide


Enrolment No.: 70314004423 for the purpose of subject
DATABASE MANAGEMENT SYSTEM of MCA, 1st semester under
the supervision of Dr. Manjot Bhatia during the academic year 2023-
2025.

Dr. Manjot Bhatia JIMS, Rohini


[4]

PRACTICE
SHEET 1

1. Display the contents of EMP table.


Ans

2. Display employee name, job, title and salary of all employees.


Ans
[5]

3. Display details of all employees working in department 10. --


Ans

4. Display details of all employees working as MANAGER. Ans

5. Display all jobs in the organisation. Ans


[6]

6. Display numbers of all departments where employees are working.


Ans

7. Display details of all employees with their annual salaries. Ans


[7]

8. Display details of all employees whose salary range is 1000 to 2000.


Ans

9. Display details of all employees who are not working in department


10 and 30.
[8]

Ans

10. Display the names and job titles of all employees whose salary is
either 1000 or 3000 or 5000.
Ans

11. Display employee number, salary and jobs of all employees of

department 20. Ans

12. Display employee number and name of those employees who do not
earn commission.
Ans
[9]

13. Display details of all employees who were hired before 1 st Jan 1982.
Ans
[10]

PRACTICE SHEET 2
1. Display total number of employees working in organization. Ans

2. Display employee number, name of those employees, who do not


earn commission and they are not clerks.
Ans

3. Display details of all employees who were hired in year 1981.


Ans
[11]

4. Display employee number, salary and department number of all


employees, department wise.
Ans

5. Display employee number, salary and department number of all


employees, department wise.
Ans
[12]

6. Display maximum salary department wise.


Ans

7. Total number of employees who are not entitled for commissions.


Ans

8. Calculate job wise average salary.


Ans
[13]

9. Display names, employee number of all employees whose name


starts with letter 'J' and ends with 'S; and were hired before '1-
January-1982'. Ans

10. Display employee number and department number of all employees


who are earning more than 2500 and whose name has third letter as
'R' and working in department 10. Ans

11. Display details of employees earning salary 3000 or 5000 and their
name starts with ‘s’ and ends with ‘t’.
[14]

Ans

12. Display details of employees who are not managers. Ans

13. Display details of employees who were hired before 1982 and they
are not presidents and managers.
Ans

14. Display employees earning salaries more than 1000 and less than
5000.
Ans
[15]

15. Display employees whose name third letter is ‘m’ and ends with ‘s’.
Ans

16. Display employee name, annual salaries of employees working in


department 10 or 20 and their job is not clerk.
Ans
[16]

17. Display employee whose name contains ‘r’.


Ans

18. Display all jobs in department 10.


Ans

IPU University Lab


[17]
[18]

->
[19]

->

=>

=>
[20]
[21]

1. Print all the records of client_master table.


[22]
[23]

2 .Retrieve the list of names and the cities of all the


clients.

3. Find the name of all clients having 'a' as the second


letter in their names.
[24]

4. Find out the clients who stay in city whose second


letter is 'a'.

5. Find the list of all clients who stay in city (Mumbai or


Delhi or Madras).

6. Print the information from sales_order table of order


placed in month of january.

7. Display order information for client_no 'c00001' and


'c00002'.
[25]

8. List the product in sorted order of their profit_percent


and qty_on_hand.

9. Calculate the square root of price of each product.


[26]

10. List the names, city, state of clients not in the state of
'Maharashtra'.

11. List the product_no, description, sell_price of


products whose description begin with letter 'M'.
[27]

12. List of all orders that were cancelled in month of


March.

1. Display the order no and day on which client


placed their orders.

2. Display s_order_date in the format "dd-month-


yy" e.g 12-February-
16.

2. Find the no of days between current date and the


delivery date of the orders placed by the client.
[28]

4. Change the s_order_date of cllient_no 'C00001' to


24/07/16.

5. Delete all the records having delivery date before 10-


jul-16.

1. Count the total no. of orders.

2. Calculate the average price of all the products.


[29]

3. Determine the maximum and minimum product price.


Rename the title as max_price and min_price
respectively.

4. Count the number of products having price greater than


or equal to 1500.

5. Find all the products whose qty_on_hand is less than


recorder level.
[30]

1. Find out the product and their quantities that will


have to delivered in the current month.

2. Find the names of the clients who have purchased


'CD Drive'.

3. List the product_no and s_order_no of customers


having qty_ordered less than 5 from the
sales_order_details table for the product '8GB
Pendrive'.
[31]

4. Find the product_no and their quantities for the


orders placed by 'Tina' and 'William'.

5. Find out the product_no which has been sold to


'John Mathew'.

1. Create a view from client_master table consisting of


client_no, name and city attributes.
[32]

2. Create a view from product_master table consisting


of product_no, description and qty_on_hand attributes.
[33]
[34]
[35]
[36]

You might also like