DBMS Lab Assignment 3
DBMS Lab Assignment 3
Question 1: Retrieving records from the previously created tables Employee and Departments
(Lab assignment 2)
a. Find out the names of all the employees.
b. Retrieve the entire contents of the Employees table.
c. Retrieve the list of names, and age of all the employees.
d. List the various department names from the Department table.
e. List all the employees details whose salary is greater than 30000.
f. Find the names of employees who have a salary equal to Rs.3000 and age greater
than 32.
g. Retrieve the list of names, age and Department name of all the employees.
h. Display name of employees that starts with ‘C’
j. Display name of employees that ends with with ‘C’
k. Display name of employees having two ‘a’ or ‘A’ chars in the name
l. Display the name of the employees whose second char is ‘b’ or ‘B’.
m. Display the name of the employees whose first or last char is ‘a’ or ‘A’
1
j. Delete the records of student where marks<30.