You are on page 1of 6

Kadiyala Monish Mithra

AM.EN.U4AIE20038

Department of Computer Science and Engineering

Lab Assignment 1
21AI304 BIG DATA AND DATABASE MANAGEMENT
1. Create the tables and insert values in the employee and dept tables
2. Display all the records from the above tables

3. Display the empno and name of all the employees from department ‘Research’

4. Display empno, name, dept no and salary in the descending order of salary
5. Display the empno and name of all employees whose salary is between 20000 and 50000

6. Display all department numbers without duplicate values.

7. Display the dept name and total salary of employees of each department.

8. Change the salary of employees to 25000 whose designation is ‘Typist’

9. Change the mobile no of employee named ‘john’


10. How the resulting salaries if every employee working on the ‘Research’ Departments is given a 10
percent raise.

11. Find the sum of the salaries of all employees of the ‘Accounts’ department, as well as the
maximum salary, the minimum salary, and the average salary in this department

12. Retrieve the name of each dept and number of employees working in each department which
has at least 2 employees

13. Retrieve the name of employees who born in the year 1990’s

14. Retrieve the name of employees and their dept name


15. Delete all employees whose salaries are equal to Rs.70000,; Select the department that has total
salary paid for its employees more than 25000.

THANK YOU

You might also like