Professional Documents
Culture Documents
Assignment 2 Dbms
Assignment 2 Dbms
Assignment 2 Dbms
Assignment-2
Stream :ComputerScience&Engineering/SoftwareEngineering
Subject :AdvancedDatabaseManagementSystem
SubjectCode:PGCSE201/PGSE201
1.Createthefolowingtable:STUDENTanddisplaystructure
2.Insertthefolowingdatainthestudenttable.
1.WriteSQLcommandtoaddprimarykeytothetableSTUDENTwithRegNoas
PrimaryKey
MaulanaAbulKalamAzadUniversityofTechnology,WestBengal
2.Displayalstudentrecords
3.Displayname,addressandyearofadmissionofeachstudent
4.ListthenameandyearofstudentswhoareinComputerScience.
5.Listthenamesanddepartmentsofstudentsbelongingto1styear.
6.Displaynamesofstudentswith‘a’asthesecondleterintheirnames.
7.Displaynamesofstudentsindescendingalphabeticalorder.
8.Displaynamesandaddressesofstudentswhotookadmissionintheyear
2004.
9.Listthenamesofstudentswhodoesnothaveaphonenumber.
10.Listnamesofstudentandtheirdepartmentswhosedateofbirthisafter1st
June1991.
11.CreateaCHECKconstraintonthistableforthefieldYearsuchthatYear
shouldbebetween1&2.
12.Update2ndyearstudentstomakeYear=3.Observeandnotethemessage.