0% found this document useful (0 votes)
0 views2 pages

DBMS Lab Assignment 3

The document outlines Lab Assignment 3 for UEC716, focusing on basic SQL queries related to Employee and Departments tables from a previous assignment. It includes tasks such as retrieving employee names, details, and department names, as well as performing SQL operations like creating a Student table, inserting records, and executing various queries. The assignment emphasizes data retrieval and manipulation using SQL commands.

Uploaded by

erkshitizarora
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)
0 views2 pages

DBMS Lab Assignment 3

The document outlines Lab Assignment 3 for UEC716, focusing on basic SQL queries related to Employee and Departments tables from a previous assignment. It includes tasks such as retrieving employee names, details, and department names, as well as performing SQL operations like creating a Student table, inserting records, and executing various queries. The assignment emphasizes data retrieval and manipulation using SQL commands.

Uploaded by

erkshitizarora
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/ 2

Lab Assignment 3

UEC716 - Basic Queries on Tables

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’

Question 2: Perform following SQL queries.


a. Create table Student (Rno, Name, DOB, Gender, Class, College, City, Marks)
b. Insert 5 records in student table
c. Display the information of all the students
d. Display the detail structure of student table
e. Display Rno, Name and Class information of ‘Patiala’ students.
f. Display information on ascending order of marks
g. Change the marks of Rno 5 to 89.
h. Change the name and city of Rno 9.
i. Delete the information of ‘Amritsar’ city records.

1
j. Delete the records of student where marks<30.

You might also like