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

DBMS Record PartA

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)
9 views

DBMS Record PartA

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/ 24

Ename nTNT Lname DName ÔNumbe MURSSN

BDateEmployee ssN Depotnent-Es N


ONOSeX
Salery Addvess SURYSN
DLOcobon)

ÉSS
workoNNonoters
De Pendent
ON
bn
Has

FssN De Penden t Relation D.locobon


Se B Date De P_Locabon.
DePendent
name Oname
Has Pooject Aours
P. Locatioronum P.numbeY
Pnane

IDaw Expt...No.. :
woRK& DEPT DATE)
RELAPRoJECT(PNAME,
TToNSHIP)
DEPENDENT DERARTMENT(DNME, SALARX Bchema
3upER3SN,
EMpLOXEE(ENA database
Consiclex ships
oNLolATTons tof-R
ESSN,
oiththe
elaioaqramDia
ESRN, Compang
PMuBER,
PNO ( ME,
DauMBER. table
MTNTI,LNAME3SN.
DE
HouRS) DNunßER. DND) and
PENDEN_NAML
toY
Convet
r's
re
PLOCATION,
02ocATToN]
a
MLn Slenasio
givenEntiteSand
R3SN,
DNum BDATE
SEX, MSRSTART tollouoinq No.:....Page Date:

BDATE. SE, elatoo


Table DatabaSe
created
0w) inseted
I owls) | inseYted
owls) 1

in
OUtDut
CYeated
sevte

Expt.
INSERTTNSERTTNTO
TnsERT lczeatin a.vieuoinq
2pextoxmalthe No.:
13. (12, TNSERTiL
Ioserting
CREATE
Agwwithout
e uNTQUE AR(20)Name
CREATE DATABASE
CYeatiag Studert
CREAT Tnsezting
Commit)
Bavinagnd Vie ..
'AKi Constairte
oith uoiagq 2
Abha1e,Ajith23, Tn1
TNTo VARCHARlso)
TN)o TABLE
TABLE
21,TNTO Constaints
Emojl tablessith tables(aith ox al)
meiAgeStudent(Id, Recosde
Student
AsQgmail. StudentToTNT,
3tudeatAk Database upda Tables Data
base
Databa.sae
Abh VARCHAR Student(TdTNT
4mailcom) 9
ay bag ollouoing
NoT in
to and
Td.NameAge,
meAqeEmail)VALuEs
gmai.om coo the (50)) NULL, back)(ol pY
wndoinq and Q
NAME.Age, cthout
cher'
natures Databa.se
Deleting
tale Aqe utthout
Nàme PRTMARY
Email) Emai) TNT, RecoxdS
Fnal) coastaintc) Date:
VARCHAR( Constraint] Page
No...2.:
VALUES Emai
4luEe vAlUES kÊY in
so) VARCH a
Table
Date:
Expt. No.: Page No.: ...3.

10wcs) insezted TNSERT TNTO Stucent (Tal,name, Aqe, Emai) VALUES


(Is, 'Anaya 19, Anaya Dgmail.coi)y
updatinq Recorde ia a table
Irowls) updated luPDATE Stúdent Set age=24
wHERE Td= 14

Deletiagq Recoxde in a table


Irowl s) Deleted. DELETE FRo Student
wHERE

toansat boo
3totement poce SSed
Soviag
CommTT

undoinq troniac boo


3tatement proce SSeo ROLL BACK

Database Nieaiag all Database


Student SHow ATA BASESY
Nieuing Tables in the Doata base
Tables USE Student
Student 3HowTABLES
NAME AaE FMATL
|2 Ajith 21 Asgmnall Com Viewing:all Recode in a Table
13 Abhay 1
Abhay @gmai l-corm SELÉCT ERoM 3tudent
Abharaia 24
Abhozona grail. Com

Aiaya Anaya ggaah. con


Teacher's Signature
13 12

vshree
varsha kusuma inseted
shrovya Tju r0wls)inserted
inserted Yowls)
| | 0wls) inserted
|ols) I 1
NAME CYeated
Table
inserted
owts)

Odtput
19 19 18 AnE

syagmai).
O tom com
qmoil.coan
msVoxsha
Kösumaggmai.
il.com Tiegmail.com

ExptNo..3.:
3.PRotoxm
tollouingthe
|[tu,Vaxsha'
Student(Td,Name,Age,Emal)
TNSERTInTo TNSERT
VALUE TNSERTTNTO (12,
Vieaing
SELET manushxee s.13,'Shaaya TNSERT TNSERT
l4 Aqe Restoiny
CREATE Gacking Dropping
Tuncating
Renaming Alteing
Tnserting (2atinq
Table o
kusuaa.kusuna
TNT,
the INTD TNTO
TNTO TABLE
Student
ERom 14, 19, Email a a a
ecexd StudentlTd, StucdentStudent Teceds
Student(Td, aeTable
Table Tabl
mseAonallCom NaxshaShxaa Student(Td
VARCH Table
in
the (Td,Name LTd, to
Oqmai)com the AR
Na
toble qmailcom)
gmail.om)ne, NaName (2o))'
nature
cher's
me, table
AseEmatl TNL,
Ae
AqeEmail)VALUES Age,
Emaii)vALUES Emoal) Name
)VALUES PageNo..A.: Date:

VALUE VARCHR(20).

.....e..
Date:

Expt. No.: Page No.:..S

Alteziag a Table
Table Ateed LALTER TABLE Student
ADD CoUxSe VARCHAR(20)
TD NAME AhE EMATL CooRSE Attey Alteratioh.
11
t2
Teju
kusuma
19
18 TSegnailorm
kusumaggmail tom
3ELELT FRomn Stident
|3
shovya 19 ShsayaGgmaion
voxsha 19 VashaOfoai\com
manushee 19 meogmail. . Com:L
Renamiaq a table
Table altered LALTER TARE Student RENAME To neuw Studets

Dropping Table
Table doppod: LDROP TÁNE Studant
TIuncatag a Table
Table Tuncated TRUNCATE TASLE _Student
Aten Trunta king
No data found 3ELECT * ERom_ 3tudent

Teacher's Signature
inseted 1Youwls)inserted
T0wls) 1 inserteod
ouwl)inseteol | owls) I0wls) I
Cveated
Table Ceated
Table ceoted
Table
insey
otput
td

4Foz No.:.4
Expt.
y)vALUEs(14,
|Scalan) TNSE TNSERT TNSERTSalary) TASERT Cxatinqa CREATECeate Balaxy|CKEY.
Tosk Pname
CREATEtable REATE land
Salag)vADESC13 TNSERT3alay)
Tasrtinq (so).f-id Aa4azqate
Ceate unks
ALuEs/IS, TNTo RT VALUESCI2, VAluE yARCHARÍ3oStogtdate Emp-namm pxoxm a
qi
TNTo TND TN?o TNTO TABLE DEC TABLE VenSet
TABZE a a with
mplbyeelEmp Emplayce 5o00)'Teimds TNT table TMAL tunttions
Enplogeel s1,Rasa
EmplaelEmp-id, Employeel Task(Task-id table
the
Ag
Radha, Roych Ravi, Radha
ReseaaahBLZon000): Emp-id EmplnyeeC
VARCHAR gregate of
CEmpid, to rosectCPidproject
LIo,2 )) Emplo4ee (grouptollouoin elatino
&5ooo)' Accouat EmpidFinanle Emp-io, Enploee
CSo),
oEmp-rame,
INT, Emp-id funcboos, byschemee
Empname, TNT1o.Sk_name Simple
TNT Depaztment
nature
cher's
Empname, Table DATE,
loo000)
partneat,
nameDe
looooo) Enp
Houxs-coorked ang
PRTMARY TNTqueslinple
Queriee Ceate
Departnent ame Enddate hauing Date:
...........
Page
No.:
Depaztment
Department,. vARC
PRTMAR
De
poatment.DECTYAL/S)) VARCHAR clause) oith tables
KEX HARLS),!
Date) Y
Date:

Expt. No.: Page No.: ..#.

Tnsexina eiord tn project tible.


| dOS). insetel TNSERT TNTO PpjectPid,Pname, Stat Date, End-Dode)
VALDES (lolProject A''ol-Avs-L0'o4- AuG-ts'J
TNSERT INTo Project (P_idPname tart_Date, EndDote)
NALUESllo2,Prnject s, '02-MAR-1613-nAR-19)
TNSERTTND Project(P icl, name, &taxt Oate.End Date)
NALUES (lo3Poajct C', o3-Avi) -20, o4-EEB-2)
TNSERTÎNTO Project (P_id.enamestart_Date, End Dote)
NALUES(oy, frajectD,'o&-pEC-QT-APR-22)
TSERT TNTO Pje ct (P icl, P name, Staot. Date, End Date)
MAZUESCIoS paject FI|-fE B-2 OR- DEC -23):
insey te Tnsexhnq gecond to Task Table
TNSERT TNTO
" T a s E (Task ic,Tosk nanme Pid, Emp-ic
inseytel Hastaaked)NAlUEs (201' Taski. ol, l, Isn)"
InSERTTNTO Task(Task id, Task nane Pid Emp-j
inste Hoursctkad )NAluEsC202. Taska lo2.12, lpa)
SEST_TN*o TaSklTa.skid. Task nane p-i Eanp id tus
insrteo woYKedNALUES(203 Task2 lo3!3,sa
TNSERT TNTD Task(Task jd, Task name pid, Enp id tHous
ooheal)VALUES(20y, Task loy iu, tS)
TNSERT N*o Task Tak id, Totlc name, Pid Emp e tecas
YteAluES(20s Tasks las, Ls 200)
ExnpNAE DER!STo1ENT SALARY Viuwiag TeTds in Employe table
TT 8LECT ERo Employee
2 ha Finene loooo0
Reaeah 1S00000
Aicant
2adha &Se00
Teacher's Signature
Date:

Expt. No.: Page No.:........

PNAME STARTDATE END_DATE Viecating Tarda in poact table


101 Project A o4-Avt1S SELECTr FROM Pojet
(02 projet B 02 ~MAR-L |3-MAR-I?
projetc -03e-20 09-FER-2)
lo4 prgjetD o8 -DE-21 O9-APR-22
-FEB- 24 'o8-DEC-23
Vieoing Kcords lo Task table
TaskID TASk NANEPTD HoUReUoRKED SELECT * FRon Task'
201 Task I 1ol (So
202 Task2 102 "12
203 Task3 13
204 Ta.sky (4
205 Tasks 1 200 Queies uoith Aq qa qate Funtboas.
TOTalSalary 3ELELT BumCsoalory As Totalsalary
183So00 Fom Employee
AVE RAESALARX SELECT Aytal Salany As AvsageSalory
l00 000
FRom Emplayee
wHERE Depatment Einonle
To balTask
|8ELECT CouNT(z)_As Total Taske
FRoM Tosk

Queies with Agaz qate duaton[ oup By and Havingcbu)


To TALHouRSwoRkED Cy RouP BX Clause
102 Loo |3ELECT eid SumlHouxsLookad)AS Tbtal_hous_umkea
ERom Task
45 RouP BX Pid
200
lo3 So
Teacher's Signature
Lo2 lol

HouRSoRkED
TotAL
100 130 200

Expt.No.: ,

Pic,Houzsuotked
touSLIDTK«lARoup
HAvTNS so BX
ERomTask
3ELELTPilClause
HANTNn

sum(Houx

coorkec!
er's
ure

As
TotalLhousoke!
Date:
Page
....
No.:
Date:
Expt. No.: ..S. Page No.: ..L........
oulpot
SExetute the dollouoinq Queries
a Hou) the resulbing álaries ! eVery emplayee
ooTkiaq on the kesearch Depazt mat ik iven
b.Eind the Sum oi the Salaxies ot al employeesC
the' AcQunts' de poxtneak as cwill ad the monimn
Saloz4 the minimum salors and the averqe
Salozy in this departmet.
Create
table Emplayee
CREATE TABLE Emplo4ee CEmpid TNI, Empame
Table CYeoted
vARAAR L2o). Depaatnent iARCHAR(20),Salary TNT)
Tnsexio g2coxds in to Table Employee
I owl) inted TNSERT 0NTo Employee(Enap-id, Emp îame, De paztonert,
Salas) VAlUES(1LAnuy 'Reseaxch,coDoD)
I ouls) inserted INSERT INTo Emplyee(Enp id, Empname, Department,
Slar)VAluES (12, An Accoutsloooo)
wls) insrteo! TNsERT TNîo Employeel(Empjd Empaame, Depatment,
Salco)vAlUESLIS,'Ancop 'Résearch,&ooDo)
NSERT TNTD Emplogce(Emp_id,Empname, Depastonent,
Solona YALDES(4¤nY Accountc sooon)
1 0wls) inseted TNCERT TN)o EmplayeelEnpid,Empomt, Departnent,
Salay)vAlUES(IS AnixudhAceut 9ooaa
DEARTAENT SALARY
Anuj Research 50000 Niing SeCOrds in Emplayee table
12 Anu A
ccounts SELECT i FRoM Emplayce'
Resecoch
13
Anonp
Anvi Accounts SO00o
Aaivdh Accounts
Teacher's Signature
Date:

Page No.: ....J.


Expt. No.:

salaries i eVexy employee coovcq on he


a.toothe gesulbna
Reseaxch Depatrent is qien a lo pYeat Yalse
UPDATE Employee
SET Salox4
ttERE =Salay
Depaxtment Research'
DEPARTMENT SALAR
EmP 7D EmpNAmE Research SELECT EnpidEmp name, Depostoneat., Salary
Anuj FRom mployee
A nu Accounts
Research
13 Anoop Sooo0
Anvi Accounts
Accounts A0000
LAniid h b.Eind the suon nd the kalanes Dt allemplates ad the Accouts
departmentasuellas the matimum Salary the mnimum
Salaryand the ave Yagelalory in this oepat meat
ToTALSALARY BELECT Sun(Salary) As Total Salary
Q400 O0 FRoM Employee
wttERÆ Depatment Acceuntc'

Mecinaum Salay SELECT MAX salary) AS Matimum_salay


FRom Emplbyee
ottERE Departneat= Accounte

mîNIMUM_ SALARX SELECT MINsalax) As Minimunsalary


FRom Eamployee
Depatnent Actount'

AVeaye- Sqlary SELET AVealSaln)AS AYeSalary


80000 FRodn Employee
utERE Depait neata Accruntc
Teacher's Signature
Date: eeesseseesee

Expt. No.: .. Page No.: ..12

BExeute the kallauaing queties


a.lRetxie the name oi ech emplnge contclad by Depatmuat
Inuaba5(ude EXTSTS Opoadpr)
b.RetleNe the name o eoch dept ond aumbey Dt emploeed
uomking in eoch Departaent ohich has at least 2
Bmplogies
Coeate Table Emplayee
Table Cteated CREATE TASLE EaploeelEmp_id TN, fmp-name
NARC HAR (20), Emp-ae TGI, Emp.desig VARC tHAR (20).kpt
oum TN)
cxeate Table Depaxtment
Table érated leREATE TABLE Depastment (Dept aum TNT, Dpt name
VARCHAg [20), Projct name VARCtHAR(20). Emp-ic TNI'
Taserbag gecords to Fmploee tuble
row(s) inserteo TNERTTNTO Emnployee( Empid, Empame Emp.agt.Ent
desie Dept aum)¦Lu s(L.'Balu'an, Toterd )
inserteo TNCEXT ToTo Enplayee(Emp.id.Emp nam.Empage, Emp
aum)VALUES(12,´Bhanu30, HRs
lolesiq. Dept
Towls) insrted TrittkT TNTo Employee (Emp id. Enfmme,Empagei Emp
desi.Dept numiAES(I3, Biadu 2s, Deye lopa" 22
lnserted EnusERT TNîo EnploselEmp-idEmp_name, Emp ae Enp desi
Opt Aum) VALUEs(Ty Bhavana 21,Teamteodl c)
rOwls) inserteo TNEERTT No EmplyeEmpi:
Dept aunaALUEs I Shask4.
agEmples
Tnsrhag Tecords to Departaneat table
TNSE RT TNTo Depantmnt(Dept no, Dept am, ojut name
Teacher's Signature
Date:.
Expt. No.: Page No.: ..13.

TNSER TNTO Depaat mnt(Dept num,Degt name, Projct


ame Empid)vALuES(S 'nTProjet s, 2)
(.ats) inerteol TNSERT TNTO DepatmetLDept num,Dept name pnject home
Eap-idvAlUES(2,'T Proctc 3)
TNCERTTNTo Depatment(Dept numDept name,poject name,
Eorptd) ALUES/S, Eiaante'ProjectD)!
InSerteo INSERT TNÎo Depoateent(Dept num,Dept name,prjectname
Ernp id)vALUESLS'ReseoxchProjectEI)
EMNAME Vieuotna pota) Recexds in etoployee table
Balu 20 inteyn 3ELECT* FRom Emploee
12 shanu 30 HR
13 Bind 2 Developr 2

shavona Teamteos
Bhasko Lmorag
DEPLNm lDEPTNAmE PROSECLNAnE Nieutag Records in Depatmat table
Project A SELECTFROMn Departnat
Projc t B 2
TT 13
irence prajet
S Reseaoch Projet£ aRetrive thename od the lach employee tontaollud by Departma
umbey cluse ETTS Operator
SELECI Emp name
Eap-neme FRoM Employee
Bhanu LottER E EXIS TSCSELECT Deptum
Sharana FRoM Employee
shaskay LoHERE Dept auma
Teacher's Signature
Date:
Expt. No.:
Page No.: ..4...
lRetrie ye the name od eoch dept and nuabx od empoy
es nkng in each
Depaxtment hich haso4 least
DEPT Num NUmEmplo XEEs
9ELECT Dept-aum,LaunT(A) AS num Lmployeel
EROM Emplayee
HAVTNa CoUNT( =2

Teacher's Signature
Ernp-name
Empid
|2

2oco
sheta Chandini
chandhana rocwcs)
chanda Chandsa
Output
CatedTa
ble
Inserted
Insert Tnserte
Project-oum
o9-jan9to
ol-jul9Y
b-l999 BithDate Inested

5 2

ExptNo.. : ..
b.RetiVe 4Eeute
Laum)VALUES(42'
VALUES(|Lehandin'ol-ju
Viawina
SELECT
andashekai(oaa-2000,
numVAuESCIL
num)VAlUES(1, ThisERTTNSERTTasext |CREATE
2-quq-l9932
cLnäm)
handhaa.
199y)
T'NSERTTNSERT ARo)Employee
execte
Table thatname, fox
each
Bixth pDject and
TeLoTd îN)o TNTO TNTO TN+oecOYds TABLE theARme the the
Rom F pnjectTetie
Emple Employee Date Cuse kollousn
Fployee Eonployee(Empd,
Émnployee Employeel AumbY
Chaneloa'o-eb-
od to
EmploeelFmp_id
DATE ot
Employee
Fmplo4ee
(Emp-ld,Empnane,
(Emp-id.Empname, (Emp.id, emploaRouP q
Emp_îc,PaDjetnum D4
Quexie
By) the
employee
ya
ature
her's Enp table
table Empnome, peat
Emp-name,
199 nama,tìth TNT TNT,
who
ohonumb
Bith
BthDate, ben
4) Birth Emp-name eDIk .15..
PageNo.: Date:

Dote Dote BirthDate. in the


Date the DO
fpajet paject p0jet prnject
pajct VARC esseee.
Poqet
num
2 Emp-i
13 12

4
sowls) jnseted
Owts) |
projetEprojproject
eet DcPaject Vowls)
Proet-
name Projnum,et
CNateo
Table
A insertedinseyted inseyteol

Employee
num
Project
name
DPrejctB A
pojectprojetprojeet
prnject

Expt.No.:
alfor etxeeate
paojet
taable
eaRoup5ELECT anc ProctEJ)
NALUEShs, s,NALOES
TNGERT
project
TNTo TNSERT
IBsl3,3,'Poject TSERT
NAJD NALDES
TNSERTCTnsexing
Project-nme
VARHAR(2))
Prnject(ue
Pzoject
FRom yieueing
3ELECT
Ppct
EROm VALVES(Lproct Å) CREATE
Tnsert
the each Cy
BY numbey
TNTO
{2,2,"paojet
TNTO R)
name.lOUNT(Emp
prnject,trive a 4, TNTO TTO TABLE
Projet ProjectlEmp_idProject
reord Poect
aRouPBY ProjectEnpiel
project(Emp coxde Project
pjectlEmpid,Praje
D
Dem,project employee
inlEnpid. ) in
the table (Enpid,
to
project id.projt poiet
ature
her's
pajctname)
paojectnum, projectaum,
pojeLt
nome ho panect_
numbex nuen,
u0rk num,
poajeot_nne) t
proectname) poojct num, TNT.
num
.Jh.
PageNo.: Date:
er
the
Dn
Fmpoyee
idDAsAum
project Pojt
that
name)
name nam)
Enf-one
chandini
chandhana
chantra

Expt.
No.:
bRative
Emp_ame
OHE SELET
Emloyee
ERom
RE

Birth the
nome
Date
od
Bettieen employces

199D
her's
ture toho
AND
1999 bazO PageNo..14: Date:

in
the
Date ......o.*..**

Expt. No.: Page No.: .12


Output
R.Eo each Depart ment thut has more than fie emplaqees
tiee the depatmeat numbey and aumber pÅ employees
esho ae makin ealau nose thon hocoD
Ceatna a table Emploee
Table cseate LCREATE TABLE Employee CEmp id TNL Eap-ameARCHARLz)
|Salory TN De P4 numn TN)

Tosoting gzcorde to Eaplayee table


owls) inserteo TNSERTTKTo EnplgeelEmp ic,Emp-namne, Salary.Dept aum)
1 owls) inserted RNGE RT TNTO mpname, galg Dept num)
vADESL LI, Sunttha
Towls) inserte TNSERT TNO Eoplouee/Empid.Eopname, SaloyDe P num)
VALOESl Sisesh3Soo0,D
owls) inserte TNSERT TNTO Empoyee (Empid,Emp_name, calay De Pt Aum)
NALUES L, sonma, 58000,D
incerte TNSERT TNTD Emploee EropEmpname.salaxy, DePB_num)
NALUES LL,'shaa`oo00
inseteol TNGERT TND Enploee (Empid, Emp pam, Sabry.Depl am)
Nieoinq TcOdin tmploee table
EmpTD EmpNAmE SALARY DEPT_NM SELECT FRom Emploee
Sudhe 6O000
Sunitha
Sush
SUma
Shsavya
1 shradha
Teacher's Signature
Date:

Page No.: .19


Expt. No.:

Eoy each Departnent that has more han e emploees,


t e the clepastnmat Aumber analnamba ot empbyees.
DEPL_WM NUM Emplo XEE making BalorymoTe than 4Doo0.
BELECT Deptaum, CouNT mp id As NuM. employees
ERom Employee
wHERE salay yoo00
nRoup BX Dept num
HaNinq cCaNT (Enp-i) >s

Teacher's Signature
Cnseskol
Tou) insod
tate)
Towls)
(cTeated)
insrtd
Touw) insoed
reatec)
vOuls)
Cveateo)
insevted
Towl) caeato
Table CTeated
Table

Expt.No.:
9foy
_TNDINSERT
n?.
NSERT Tnsatina (2.'TNSERI TASERT1minho'
nuERT TNSERT TNERT)'TNSERT idINT)
Insrhna CREATE CHeating
EmpCxeahaq CREATE
TABLE eoork
2.changSbeugmìa
1in2) CL,'[2, Bangchan
numbey
he
each
TN*O INTO ,etiele
INTD aîo TNÍO panjec
TN*O TABLECphojetlenum
2ecods
Pagect Emeloyee TO table a od
EmpkeelEmpid.Empname EMpiaelEmp-id,
EmployrelEmpid,£mp-name, ecerds
Emplayee a t
fmployee table eaployees the on
(Pnum, trCEmpid.Em_ to projectnumbeuohth
Employee
(EmErp Prajett Employce
ak,p_Aum)utLES
ran. Pajcct oho more
Pnae
er's ork thun
Es fmp
name, P Table onano tusa
praject
nome
ure Empi ÎNI
name,P_nunm)AluEs fame thct
employee&
aum) am) P
Paum)VALuES Pname .2.0....
PageNo.:
vtluE<
vtluEsC!, f majeek
vtl0E num)
jct VA
VAlUEs RctAR20)
'pc
Date:

Page No.: ..2J


Expt. No.:

I. owts) ing teo


TNSERT _TNTO Projcct (P-num,Pame, Emp-id)vALOES
TOwlc)inerte
TNSERT TNTO Proect(P_num,Pname.Emp-id)vAlu ESC12,
TNSERTI)o projet(P num.9_name.Emp-id)VALuESC12,Proje
1 owts) inseste
TNSERT TND Project(P_num,Pame.Emp-id)vALUAS (I2,

Empi Emp_ame
Records in Table Emploqe
FROM Employee
Bangehan
Han L
2 minho 12
2

2
Saunqmin 2

Changbin 2

Vieusias Retonds in Panjet Table


SELECT FRom Paojet
Pnone
PoojectA
1
ProjetA
Project A
12
L2 Prject & 2
L2
Projeet& 2

Teacher's Signature
Expt. No.: Page No.: ..22.....

EoY each proket Dn ushich mau thantoemdoeeSaxk


PNuM P NAMEi NOMEMPloXEES taiee the poaject Auabex, roect name and the number o
Project A emploees acho to0Ik on thatp c t
12 Project B SELECT Paun.p name CouNT (Emp-ia) fAs Aum employ ees
FRom Project.Employee
eaRouPB P-num,Pme
HavTNe CouNT(Empid) 2

Teacher's Signature
|3 |2 Em
id 1
CYeatedVie |
SOwls) ceated
Table
insrto
ols)
inserted
Tawls)
Racha Raja RaVi Emame Cuptut
Rarga Rama
inserteo
inksteof
inserteo

Expt.
..{.
No.:
Io.
CREATE
SELECT Mwing TNSERTTNSEPT
Emplaee
3ELECT
FRom TNSEPT TNsexbeg Leating
HNERT
TNCERT Cseatiaa fos
CREATE eletbiag
vieusc,
mployee
oE CREATE
fRomSELET wHEREERoM
E Empid=s Cseabiaa
a
RE, qiven
Emplayee Snlo 1NÍo TNto TTOTN Vieussloith
meid EmpioV(Êw
Fmpnome, EmpnameVIEW erd To Empayee
TABLEtable a
a Enpbgee(Emp-id Emplogce secord
FnploeeEmploqee et
Viewluith Fmployre(Emp od
|s stait
Emp Emp_ Fnm Emploel avieusom
lEmpid lEmptd to relabioo
Emp.stot4 lEmp aad
lmplocee cmploqee
jd and ie othouttableJ
Emp Enp
Empam) Fmp Emid
AS
er's
ure uotthaatA table,Empnam)loEs
namgrame) ram)
Table checle
Pexdon(9
VAlUES((9,
VALUESdha) VAlUEC12, INT,Emp opben).
Check AlUs(3' the Page
.3.No.: Date:

ophon ttlouoiag
Droppinsy
ame)
jaRangen
'e; ,
Date:
Page No.:
Expt. No.:

EmpID Se view xecord rom tmpStaf! Vieuw


Emp ame
SELECT & ERoM Emp-statd
Tadha

the View
vieo doroppeo Drapping
Orop vÍEw Emp taf

Atuy pDpin tde viw


No data tpunl. SELELT A ERom Emp tat

Teacher's Signature

You might also like