0% found this document useful (0 votes)
14 views7 pages

DBMS Prac3

The document discusses performing queries to retrieve, update, and delete records from tables. It includes examples of retrieving data from tables by fields, updating record fields, deleting records by conditions, altering table structures by adding and modifying columns, and renaming tables.

Uploaded by

BHUPENDER KUMAR
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)
14 views7 pages

DBMS Prac3

The document discusses performing queries to retrieve, update, and delete records from tables. It includes examples of retrieving data from tables by fields, updating record fields, deleting records by conditions, altering table structures by adding and modifying columns, and renaming tables.

Uploaded by

BHUPENDER KUMAR
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/ 7

1

PRACTICAL - 3

AIM : PERFORM QUERY INVOLVING RETRIEVE, UPDATE, AND DELETE RECORD IN


A TABLE.

RETRIEVING RECORDS FROM TABLE.


1) Find out the names of all clients.

2) Retrieve the entire content of the client_master table.

GAURAV (19162151005)
2

3) Retrieve the list of names and the cities of all the clients.

4) List the various products available from the product_master table.

5) List all the clients who are located in Bombay.

GAURAV (19162151005)
3

6) Find the names of the salesman who have a salary equal to Rs. 3000

UPDATING RECORDS IN A TABLE.


1) Change the city of client_no’C002’ to ‘Bombay’.

2) Change the bal_due of client_no’C001’ to Rs.1000.

GAURAV (19162151005)
4

3) Change the cost price of Floppies to Rs. 950.00.

4) Change the city of the salesman to Mumbai.

GAURAV (19162151005)
5

DELETING RECORDS IN A TABLE:


1) Delete all salesman from the salesmane_master whose salaries are equal to
Rs. 3500.

2) Delete all products from product_master where the quantity on hand is equal
to 100.

3) Delete from client_master where the column state holds the value ‘Tamil
Nadu’.

GAURAV (19162151005)
6

ALTERING THE TABLE STRUCTURE:


1) Add a column called ‘telephone’ of datatype ‘number’ and size=10 to the
client_master table.

2) Change the size of sell_price column in product_master to 10, 2.

DELETING THE TABLE STRUCTURE ALONG WITH DATA:


1) Destroy the table client_master along with its data.

GAURAV (19162151005)
7

RENAMING THE TABLE:

1) Change the name of the salesman_master table to sman_mast.

GAURAV (19162151005)

You might also like