0% found this document useful (0 votes)
19 views1 page

DBMS Lab

The document provides instructions for a DBMS lab assignment involving creating tables, writing SQL queries, and a PL/SQL program. Students are asked to create tables for employees, works, company, and manager data. SQL queries are then provided to update records, find matching records, delete records, create a view, and get minimum values. Additional tasks involve renaming a table, adding an attribute, and using different types of joins. A PL/SQL program is also included to print a message.

Uploaded by

kshitijnik
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)
19 views1 page

DBMS Lab

The document provides instructions for a DBMS lab assignment involving creating tables, writing SQL queries, and a PL/SQL program. Students are asked to create tables for employees, works, company, and manager data. SQL queries are then provided to update records, find matching records, delete records, create a view, and get minimum values. Additional tasks involve renaming a table, adding an attribute, and using different types of joins. A PL/SQL program is also included to print a message.

Uploaded by

kshitijnik
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/ 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