0% found this document useful (0 votes)
32 views14 pages

DBMS Assignment

Uploaded by

photo singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
32 views14 pages

DBMS Assignment

Uploaded by

photo singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 14
——— ee Ae Greate a fable Student Detafls usth the gu ie Roll_No Numbeo (5) Lestle Feet Nome. vauchow 2( 16) Lost. Name vauichan2 (16) Claas youchau 2 (10) Seclfon, chow (4) Rdduess Vaerchass 2 (95) Age Numbey (2) (3) Add a cAlarnn" chp" fo Student Detsils Table cotth column size 'S and dota type vouthan 2, GI Delete caturan "Age" Faron Stident-Detdils table. (i?) Modi @lumn "Section vofth noo date Hype Vasichow2? fy Student —Delsils table, CREATE TABLE ShudentDetatls (RoU_no Numaer (5), FiustNome VARCHAR? (15) , Laskname VARCHARLIS), Class VARCHARS (10), Secon CHAR (4) , Adduess VARCHARD (25), Age NuMBER(s)); Select Command * Q. Rebaiieve all secasds from Student Details table. b. Rotfeve all teenot from Foulty Details table. C Relnfiese AN stecosdls fam Employee table. = ~ Releifeve Shame siewsds from Studerh Debdils cahich stants with MS - @ ReHaiee tecouals eer Employee table, a Dunsy id ©) Select # Faron Student Details ¢ et ©) Select * Faron Fou Petals 5 <) © Select ¥ Fos Employee ; el ) Setect + Thaiom Student _DetoPls wheue Shame ke 'N%'y 2] © Select * Foor Explo ee pal Update, (ommoand BAUPERs Sector) dhs slant "Koj " Prior mitt do mB. gd Mod? y adduess a a Faulty chose. Poualty -id 4s "Foo" 4o MHoW!, bh. Thareose the sal Cenplay to eu sease the a q mplayer eas Cornput Aepasrtmenk by 5*/o, Guess = (©) UPDATE Student Details Ser Secton = ‘MIS! WHERE Sname = ‘kajol 's el @ Vroare Faulty Details SET Adduess = 'MHow! WHERE Pauly tq = ‘Foo’; 4 (H) vppate Employee SET ‘ala = Salauy * [os WHERE ‘Depostimenk rane “= ‘Compton's ?. BTEC one: sfuiho “Yahoo! tp Vans i Qussay ~ tomvert SELECT RPAD (‘YAHOO 10,'!') favom duals 4 ee \ ppae C'Yaroo, G skpat ' Yewoo lt! ir! ei 22 Conveut Serect cepol'stw', &,'+') Faom dual! es "Shou" to Wh = Sig Leao ('stav' , 23 Reétiieve —uusen’ dake Farerm gym Query fi Select Cussuenh_date + +-- ---4 ' ' Cuusenh_ dake | a ge ' ' 2023-03-22 1 Qutpah - oe month « | — 24 Rehuiteve loot dare Select lask-day (cusent- date) $ -+ d ae x tho month cunuscah is as Pret 1 loat-doy (ussmeot date Qutpul ' 4 eer 02-3) ) ; ---+ 1 20.22 4 25 Rekokee te no. 4 months het Tanuasuy 201¢ ond Mantel DOs

You might also like