Experiment-3 (DBMS Lab)
Experiment-3 (DBMS Lab)
Implementation:
Ans:
a) select name from client_master ;
Output:
NAME
--------
Akshita
Dhawal
Akansha
Divya
4 rows selected
4 rows selected
2 rows selected
3 row selected
2 rows selected
Ans :
a) Update client-master set city=’Noida’ where city=’Dhampur’;
Q-f) Create table New_client from client_master with the fields Client_no, name
Ans :
create table new-client(client_no,name) as (select client_no,name from
client_master);
Output:Table created
Q-g) Insert into table new_client data from table client_master where city = ‘Hapur’
Ans: insert into new_client select client_no.,name from client-master where city=’Hapur’;
Output:
Client_no. Name
6 Divya
1 row created
a) Add a column called Telephone_no of data type number and size = 10 to the
client_master table
b) Change the size of the description column in product_master to 25
c) Drop the column Telephone_no from the table client_master
Ans:
a) alter table client_master add(telephone_number(10));
Output:Table created
b) alter table product_master modify(description varchar(25));
Output:Table created
c) alter table client_master drop column telephone_no;
Output:Table created