IP Practical With SQL 2022 - Only SQL
IP Practical With SQL 2022 - Only SQL
Name: ……………………………………………….
Class: ………………………………………………..
Subject: ……………………………………………..
Bonafide Record of the Practical Work done in the …………….......................
by ………………………………………………………………………………...
School Seal
Submitted for the Practical Examination held at Greets Public School, Kaloor
on ……………………………………………………..
1. MYSQL Queries 1
Date: MYSQL QUERIES
Sample Table
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.
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'.