RDBMS Lab1
RDBMS Lab1
RDBMS Lab1
Create Tables:
c) Retrieve the list of names and the cities of all the clients.
Code:
Select name, city
From Client_master;
a) Delete all salesman from the salesman_master whose salaries are equal to Rs.3500.
Code:
DELETE FROM salesman_master
Where sal_amt = 3500;
b) Delete all products from product_master where the quantity on hand is equal to 100.
Code:
DELETE FROM product_master
Where qty_on_hand = 100;
c) Delete from client_master where the column state holds the value 'Tamil Nadu’.
Code:
DELETE FROM client_master
Where state = 'Tamil Nadu';
a) Add a column called 'telephone' of data type 'number' and size ='10’ to the client_master table.
Code:
ALTER Table client_master ADD telephone Numeric(10);