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

IP Practical With SQL 2022 - Only SQL

This is a bonafide record of practical work done in MYSQL queries by a student. It contains 18 MYSQL queries performed on sample employee tables, listing operations like aggregations, filters, sorts.

Uploaded by

athul varghese
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)
27 views

IP Practical With SQL 2022 - Only SQL

This is a bonafide record of practical work done in MYSQL queries by a student. It contains 18 MYSQL queries performed on sample employee tables, listing operations like aggregations, filters, sorts.

Uploaded by

athul varghese
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/ 8

PRACTICAL RECORD

Name: ……………………………………………….

Class: ………………………………………………..

Subject: ……………………………………………..
Bonafide Record of the Practical Work done in the …………….......................

laboratory of Greets Public School, Kaloor during the year ……………….......

by ………………………………………………………………………………...

Reg. No. …………………………………

Principal Staff in Charge

School Seal

Submitted for the Practical Examination held at Greets Public School, Kaloor

on ……………………………………………………..

Internal Examiner External Examiner


INDEX
Date of Page Date of Sign of
Sl.No. Name of the Program
Program No. Checking Teacher

1. MYSQL Queries 1
Date: MYSQL QUERIES
Sample Table

1. Display the total salary paid to the employee of the company.

2. Display the mean of the salary paid to the employee where salary exceeds 50000.

3. Display the number of employee who get salary more than 40000.

Sample Table

1
4. Display the number of different cities in the employee table.

5. Display the number of records in the employee table.

6. Display the largest employee number from employee table.

7. Display the lowest salary paid from the employee table.

8. Display the details of the employee in ascending order of the field deptid.

2
9. Display eno,name, salary of the employee arranging from highest salary.

10. Display the department id and the total salary of the employee belonging to each department from
employee table.

11. Display the city and the number of employee in each city.

12. Display the deptid and the maximum salary given in each department.

3
13. Display the city and the total salary given to employee in each city where the total exceeds 10,0000.

14. Display the details of the employee whose salary ranges from 40000 to 80000.

15. Display the eno, name, salary of the employee whose name has the alphabet 'a' anywhere in the
name.

16. Display the eno, name and salary of the employee whose name is 3 characters long.

4
17. Display the details of the employee who belong to the cities kochi, chennai or hyderabad.

18. Display the city and the number of employee in each city where the total number of employees is
more than 1 and whose name starts with the letter 'c'.

You might also like