0% found this document useful (0 votes)
12 views

Dbms

Uploaded by

coding course
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Dbms

Uploaded by

coding course
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

id ee

nase
ame varchar(50) not null,
not null,
street varchar(5e)default new
OUTPUT
city varchar(59) delhi" )
create table works(

null, not
1Prishaa|
2
24b|lucknow2
10 comDanv varh Reema 21ab |Chennai|2
11 salary int check (salary>8) not null); M e w Dehi|2
5 create table
compan Arushilabc2|6000
14
copany name varchar(50) not
not nul);
null, Ritu pqr800000
city varchar(5e) Rahul |Deepak
17 create table
managers( Nikhilasmine
Kanika Raohit
P name varchar(58) not null,

19 manager_name varchar(58) unique); x|delhi


xyz |mumbai
21
insert into enployee values(1, Prishaa,24bFarldabad ) abc2 noida
22
nsert into employee values(2, Reena 21ab ) Chennai abcd kolkata
1nsert 1nto enployee values(, u n DewDen9

insert
26
into works values("MeenalABC128808);
271nsert into works valuesa
values(Arush1', 'abc2, 60000);
sert into works
29 insert
into works values("Ritu, abcd2,
Bee600)

ntert into company values("abc2', 'noida' );


34 insert into company values( abcd', kolkata )s

36 insert
into managers values(PrishaaNeera
37 insert into managers values
38 1nse n Kanlka. 'Rohit ):
);
nto managers values("Kanika",
u p d a t e employee set city ucknow where emp_name- Prishaa
42 update works set company-"pqr where
person_name RItu
44
delete from works where company
45 delete from where
managers p_name Prishaa
add experience int default 2;
alter table employee
46

48selectroe10yee
ect
se selectfrom managers;
1 select fron company
Experiment-4

You might also like