You are on page 1of 5

Course : Database Design

Assignment - 2

Resources for this assignment:


.vdifileofbossmool(modifiedLinuxOperatingSystemdevelopedinDistributedObject
SystemsLab,IIT,Madras)whichincludestheIITMadrasratecontractsystem
explainedinvideolecture1.
UserCredentialsforbossmool.
Username:bossmool
Password:bossmool
TheabovefileandinstallationinstructionspdfcanbefoundunderDownloadstabfrom
thefollowinglink
http://dos.iitm.ac.in/projects/bossmool/bossmool.html
ComputerRateContractDetailsSystemcanbeaccessedfrom
http://localhost/index.htm
aftersuccessfulinstallationoftheabovesystem
UsercredentialsfortheMySQLserver
Username:www
Password:www123

Question:

VendorID

Category

Rating

Addons

SpareParts

Printers

Addons

10

SpareParts

Printers

Addons

SpareParts

Printers

10

Addons

SpareParts

Printers

Addons

SpareParts

Printers

Addons

SpareParts

Printers

Addons

SpareParts

Printers

Addons

SpareParts

Printers

Addons

10

SpareParts

Printers

10

Addons

10

SpareParts

10

Printers

10

11

Addons

11

SpareParts

10

11

Printers

12

Addons

12

SpareParts

12

Printers

13

Addons

13

SpareParts

13

Printers

14

Addons

14

SpareParts

14

Printers

15

Addons

10

15

SpareParts

15

Printers

16

Addons

16

SpareParts

16

Printers

17

Addons

17

SpareParts

17

Printers

18

Addons

18

SpareParts

18

Printers

19

Addons

10

19

SpareParts

19

Printers

20

Addons

20

SpareParts

20

Printers

21

Addons

21

SpareParts

21

Printers

22

Addons

22

SpareParts

22

Printers

23

Addons

23

SpareParts

23

Printers

24

Addons

24

SpareParts

24

Printers

25

Addons

25

SpareParts

25

Printers

10

26

Addons

26

SpareParts

26

Printers

27

Addons

27

SpareParts

27

Printers

Modifytheratecontractuserinterfaceforsearchingvariouscomputeritemsbyincludinga
dropdownoptionforchoosingthevendorIDandratingineachcategorypresentinthe
abovetable.Usingthismodifiedratecontractuserinterface,producetheoutputforthe
followingqueries:

1. Listoutthespecificationnumber,vendornameandratingwhoseprinternameiseither
HPScanJet2400orHPPhotoSmart7550.
2. Listoutthevendorid,vendornameinthesparepartscategory,sortedbyratingin
descendingorder.
3. Findtheaverageratingintheprinterscategory.
(Youroutputwillbecheckedagainststandardoutputproducedbythecorrectprogram)

Submission Details:
SqlCodeforeachqueryshouldpresentinseparatefileandformatofthefilename
Query_X.sql(ex:Query_1.sql,Query_2.sql)
Theoutputofeachqueryshouldpresentinseparatefileandformatofthefilenameas
Query_X_Output.txt(ex:Query_1_Output.txt,Query_2_Output.txt)
Zipallthenecessaryfilesinonefoldernamedasyourregisteredemailid.(ex:
abc@gmail.com.zip)