DBMS Lab Assignment
DBMS Lab Assignment
Table: EMP
Table: DEPT
Dno Dname
1 Research
2 Finance
3 Project
4 System
5 Administration
1
Table: PROJECT
Pno Eno
P1 E1
P2 E3
P1 E5
P2 E1
QUESTIONS:-
1. a) Display all employees having "a" as the second letter in their names.
b) Display employee names for those who joined in the month of Jun.
c) Display names of all employees in the alphabetic order.
d) Find the average salary of all employees.
2. a) Display employee’s names and department names of all employees who belong to either "Chennai", or
"Kolkata” or "Mumbai". '
b) List all the employee names whose basic is greater than 7000 and less than 18000.
c) Display list of all employees in department no. 2. .
d) Display the no. of employees in each department. ,
3. a) List only the names of all other employees who get the same basic pay as that of employee "Tamal".
b) Display the joining date of all employees in “dd/mm/yy” format.
c) Find all departments that have more than 3 employees.
d) Find the difference between highest and lowest salary.
4. a) Display the names of all employees who are engaged in two or more projects.
b) List of all employees who have salary between 2000 &10000.
c) List details of all employees in department number 2 & 1.
5. a) Display employee number, employee name and basic pay for employees with lowest salary.
b) Display the structure of table EMP.
c) List the name and the salary of all employee sorted' by salary.
d) Display the list of all employees who were hired during 2002.
6. a) Display employee name and basic pay for all employees who are engaged with at least one project.
b) List of all employees who have name exactly 4 characters.
c) List no. of projects undertaken in the department 1.