You are on page 1of 1

BCA Vth sem

DBMS Lab Assignment

Create the table...

Employee (ename,street,city)
Works (ename,cname,salary)
Company (cname,city)
Manager (ename,mgrname)

(A) Write the following queries in SQl..

1. Update the Employee table so that Sunil now lives in Delhi.


2. Give all employees of HCL a 20% raise.
3. Find the names of all employees who earn more than every employee of
BOB.
4. Find those employees whose name starts from alphabet ‘S’ and residing
at Varanasi.
5. Delete all those employees whose city is same as the city of company.
6. Create a view for employee relation which consists the attributes ename
and city.
7. Give the name of employee having minimum salary.
8. Change the name of table “works” to “emp_detail”.
9. Add an attribute “mobile_no” in the table “Manager”.
10.How to use “Inner join ” and “Outer join” command.

(B) Write a PL/SQL program to print “This is my first PL/SQL program”

You might also like