Presentation is loading. Please wait.

Presentation is loading. Please wait.

THE DATABASE OF MSY TECHNOLOGY PTY. LTD PRODUCT Ronald Diningrat High Distinction Assignment Autumn 2007.

Similar presentations


Presentation on theme: "THE DATABASE OF MSY TECHNOLOGY PTY. LTD PRODUCT Ronald Diningrat High Distinction Assignment Autumn 2007."— Presentation transcript:

1 THE DATABASE OF MSY TECHNOLOGY PTY. LTD PRODUCT Ronald Diningrat High Distinction Assignment Autumn 2007

2 Overview of Database This database is designed for MSY Product Stock. http://www.msy.com.au/Parts/PARTS.pdf Has 9 store around Australia. Selling computer parts The database is used to organise the stock from all over the store Store, Stock, Product and Product category.

3 ERD Store BranchName Street Suburb State Postcode Tel Fax WorkingHours Stock BranchName* ProductNo* Available ProductCategory ProductCategoryNo Category Subcategory Product ProductNo BrandName BrandType ProductCategoryNo* Price

4 1:m Relationship

5 m:m Relationship

6 A Simple query of a single table List the table of product categroy

7 Natural join List branch name, product no. and brand type from table stock and product

8 Cross product

9 Group by List the branch name and stock available in each store.

10 Sub Query List the brand name and brand type of product that has price cheaper that ML- 2010

11 Check Constraint CONSTRAINT State CHECK (State IN ( 'NSW', 'VIC', 'QLD', 'ACT', 'WA', 'SA', 'NT', 'TAS' ))

12 SQL Syntax for Actions CONSTRAINT FKProduct FOREIGN KEY (ProductCategoryNo) REFERENCES PRODUCTCATEGORY ON DELETE CASCADE ON UPDATE CASCADE CONSTRAINT FKStock2 FOREIGN KEY (ProductNo) REFERENCES PRODUCT ON DELETE CASCADE ON UPDATE CASCADE

13 Create View Create a table contains brand and price of ASUS


Download ppt "THE DATABASE OF MSY TECHNOLOGY PTY. LTD PRODUCT Ronald Diningrat High Distinction Assignment Autumn 2007."

Similar presentations


Ads by Google