Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Lab 3

3.1) Like clause

a. Retrieve name of instructors whose name starts with ‘as’.

Output :

b. Retrieve name of department that ends with ‘t’.

Output:
c. Retrieve name of instructor that starts with ‘s’ and are at least 3 characters in
length.

Output:

d. Retrieve id and name of instructor of five-digit length name that starts with ‘r’ and
ends with ‘n’.

Output:

e. Retrieve department name and building whose building name includes the substring
‘oc’
Output:

3.2) Ordering the display of tuples.

a. Find name, address and salary of all instructors in the order of salary.
Output:

b. List the records of all instructors in descending order of their name.

Output:
c. . List all name of instructors in ascending order and salary in descending order.

Output:

3.3) Rename Operation


a. Retrieve the name of instructors and their yearly salary

Output :

b. Retrieve id and name of the instructor with respective department name and
building.
Output :

You might also like