0% found this document useful (0 votes)
8 views5 pages

DBMS2 Surya 102005080

This document is a laboratory record for a Database Management Systems assignment submitted by Surya Pratap Grewal from Thapar Institute. It contains a series of SQL queries aimed at retrieving various employee-related data from a database, including employee names, salaries, and department information. The queries cover a range of conditions such as salary thresholds, department numbers, and specific character occurrences in employee names.
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)
8 views5 pages

DBMS2 Surya 102005080

This document is a laboratory record for a Database Management Systems assignment submitted by Surya Pratap Grewal from Thapar Institute. It contains a series of SQL queries aimed at retrieving various employee-related data from a database, including employee names, salaries, and department information. The queries cover a range of conditions such as salary thresholds, department numbers, and specific character occurrences in employee names.
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/ 5

THAPAR INSTITUTE

OF ENGINEERING AND TECHNOLOGY


( DEEMED TO BE UNIVERSITY)

Admission Batch : 2 0 2 0 Session : 2 0 2 2 - 2 0 2 3

Laboratory Record
DATABASE MANAGEMENT SYSTEMS
LAB ASSIGNMENT-2

Submitted by

Name : SURYA PRATAP GREWAL

Registration No. 102005080

Branch EIC

Semester: 6
Group 3EIC1

Computer Science Engineering D department


T h ap a r Institute Engineering & technology ( T I E T )
Bhadson Road , P a t i a l a , Punjab , P i n - 1 4 7 0 0 4 , India
1.

2. Q1) Get employee no and employee name


who works in dept no10 ?

3. Q2) Display the employee names of those


clerks whose salary > 2000 ?

4. Q3) Display name and job of Salesperson &


Clerks ?

5. Q4) Display all details of employees whose


salary is between 2000 and 3000 ?

6. Q5) Display all details of employees whose


dept no is 10,20, or 30 ?

7. Q6) Display the name of those employees


whose commission is NULL ?

8. Q7) Display dept no & salary in ascending


order of dept no and within each dept no salary
should be in descending order ?

9. Q8) Display the name of employees having


two ‘a’ or ‘A’ chars in the name ?

10. Q9) Display the name of the employees


whose second char is ‘b’ or ‘B’ ?

11. Q10) Display the name of the employees


whose first or last char is ‘a’ or ‘A’ ?
12. Q11) Display maximum, minimum, average
salary of deptno 10 employees.

13. Q12) Display total number of employees


working in deptno 20

14. Q13) Display total salary paid to clerks

15. Q14) Display system date

16. Q15) Display the result of (12*12)/13

17. Q16) Display info of ‘raj’ irrespective of the


case in which the data is stored.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy