Contents TASK 1......................................................................................................................................3 Task 2.........................................................................................................................................4 Task 3.........................................................................................................................................5 Task 4.........................................................................................................................................6 References:.................................................................................................................................7 List of figures: Figure 1: business rule 1............................................................................................................3 Figure 2: Business rule 2............................................................................................................4 Figure 3: Business rule3.............................................................................................................5 Figure 4: Business rule4.............................................................................................................6 1
TASK 1 ThereisaneedforcreationofthreeentitiesnamelyManufacturer,Typesand Manufacturer_type. Attributes related with entities are: Manufacturer: code(PK), company_city, company_street, contact_number, company_state, company_postcode, name_company, number_account. type: type_boat (PK), boat_purpose. manufacture_type: type_boat (FK), code(FK). Business Rule1 Each manufacturer can produce many types of boats and each type is produced by only one manufacturer To satisfy this rule, manufacture table is created and code from manufacturer table is created as a foreign key in manufacture_type having one to optional many relationshipsand type_boat from types table is created as a foreign key in manufacture_type having one to the mandatory relationship. Figure1: business rule 1 2
Task 2 There is a need for creation of one entity to previous structure namelyModel. Attributes related with entity are: Modelentityare:model_number(PK),model_engine,model_length,model_beam model_suggested_retail_price, model_retail_price, model_dry_weight. Business Rule2 Each model is created as a part of the type. To satisfy this rule, Type_boat fromTypestable is created as a foreign key inModeltable one to many relationships exist between entities (1: M). Figure2: Business rule 2 3
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Task 3 There is a need for creation of one more entity to the structure in Business rule2 namely Warehouse. Attributes related to the entity are: Warehouseentity are: id_warehouse (PK), address, warehouse_postcode, contact_number, model_number(FK). Business Rule3 Each warehouse has a capacity for storing single type model. To satisfy this rule, model_number from theModeltable is created as a foreign key for Warehousetable 1 to mandatory relationship exist between entities. Type_boat(FK)from Typestable is created as a foreign key inWarehousetable 1 to mandatory relationship exist between entities. 4
Figure3: Business rule3 Task 4 There is a need for creation of one more entity to the structure in Business rule3 namely Customer_booking. Attributes related with entity are: Customer_bookingentityare:D.O.B,email,phone_number,booking_id(PK), id_warehouse(FK), full_name. Business Rule4 Each warehouse is visited by the prospective customers with prior booking. To satisfy this rule, id_warehouse fromWarehousetable is created as a foreign key in table Customer_bookingtable. There is one to many (1: M) relationships betweenwarehouseand customer_booking. 5
Figure4: Business rule4 6
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.