0% found this document useful (0 votes)
10 views8 pages

SQL Assignment

Uploaded by

timbadiakrisha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views8 pages

SQL Assignment

Uploaded by

timbadiakrisha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SQL Assignment -1

Create below Tables with appropriate given descriptions.

Create Table: DEPARTMENT

Create Table: FACULTY


Create Table: STUDENT

Insert the values:


Table: DEPARTMENT

Table: FACULTY
Table: STUDENT

Exercise #1: Solve Queries using Operators.

1. Display the names of all faculties whose department no is


20.
2. Display students whose name starts with ‘K’;

3. Find all faculties whose salaries are greater than 32000.

4. Find those faculty records whose classroom numbers are


102,103 and 105.
5. Find departments excluding ‘Operations’.

6. Find the names of an employee whose salary is Null (NIL).

7. Display department names of between deptno 30 to 50.


(Use Between operator)
8. Increment the salary by 1000 whose department no is 20.

Exercise #2: Solve Queries using Distinct operator, Alter and


Update commands.
1. Display the Distinct Designation from the FACULTY table.
2. Count the Distinct Designation from table FACULTY.

3. How to add column in existing table? Add one column


named city in Faculty table.

4. Update Department location ‘Virani’ to ‘Atmiya’.

You might also like