0% found this document useful (0 votes)
12 views35 pages

Dbms

Uploaded by

coding course
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)
12 views35 pages

Dbms

Uploaded by

coding course
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/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy