Anda di halaman 1dari 3

Introduction to Database Systems

Assignment 2
Vendor ID

Category

Rating

Addons

Spare Parts

Printers

Addons

Spare Parts

Printers

Addons

Spare Parts

Printers

Addons

10

Spare Parts

Printers

Addons

10

Spare Parts

Printers

Addons

Spare Parts

Printers

Addons

Spare Parts

Printers

10

Addons

Spare Parts

Printers

Addons

Spare Parts

Printers

10

Addons

10

Spare Parts

10

Printers

11

Addons

11

Spare Parts

11

Printers

Vendor ID

Category

Rating

12

Addons

12

Spare Parts

12

Printers

13

Addons

13

Spare Parts

13

Printers

14

Addons

14

Spare Parts

14

Printers

15

Addons

15

Spare Parts

15

Printers

16

Addons

16

Spare Parts

16

Printers

17

Addons

17

Spare Parts

17

Printers

18

Addons

18

Spare Parts

18

Printers

19

Addons

19

Spare Parts

19

Printers

20

Addons

20

Spare Parts

20

Printers

21

Addons

21

Spare Parts

21

Printers

22

Addons

22

Spare Parts

22

Printers

23

Addons

23

Spare Parts

23

Printers

Vendor ID

Category

Rating

24

Addons

24

Spare Parts

24

Printers

25

Addons

25

Spare Parts

10

25

Printers

26

Addons

26

Spare Parts

26

Printers

27

Addons

27

Spare Parts

27

Printers

For this assignment you have to use 'ratecontract' database. Create this table and name it as
'vendor_caterogy_rating' in the 'ratecontract' database.
Modify the rate contract user interface to use above database and search various computer items by
including a drop down option for choosing the vendor ID and rating in each category present in the
above table. Using this modified rate contract user interface, produce the output for the following
queries:
1. List out the specification number, vendor name and rating whose printer name is either
'HP ScanJet 2400' or 'HP PhotoSmart 7550'.
2. List out the vendor id, vendor name in the spare parts category, sorted by rating in descending
order.
3. Find the average rating in the printers category.
(Your output will be checked against standard output produced by the correct program)
Submission Details:

Sql Code for each query should present in separate file and format of the file name
Query_X.sql (ex: Query_1.sql, Query_2.sql)
The output of each query should present in separate file and format of the file name as
Query_X_Output.txt (ex: Query_1_Output.txt, Query_2_Output.txt)
The modified CGI, PHP files and the HTML output for each query.
Put all the files in a folder same as your roll number and compress. (ex: CS14S015.tar.gz)
Submit to cs3700-ta@googlegroups.com.

Anda mungkin juga menyukai