ITC423 Assignment 01
ITC423 Assignment 01
ITC423 Assignment 01
1|Page
Table of contents
Part A.......................................................................................03
Part B.......................................................................................04
Part C.......................................................................................07
2|Page
3|Page
Contractor_Plan (contractor_id,plan_id, contractor_work_start_date, contractor_work_end_date) Primary key (contractor_id, plan_id) Foreign key1 contractor_id References Contractor Foreign key2 plan_id Reference Plan
Part B: Normalization
1.) Dependency Diagram
Transitive Dependency
Transitive Dependency
1NF(Client_id, Plan_id,client_name,Street, Town, Land_size, Plan_name, Designer_name,Designer_location) Partial Dependencies (Client_id (Plan_id Client_name, Town) Plan_name, Street, Land_size, Designer_name, Designer_location)
Town, Land_size)
2.) The 1Normal Form (1NF) because: All of the key attribute are defined, no repeating group and all attributes are dependent on the primary key.
4|Page
Client_id
Client_name
Plan_id
Plan_name
Street
Designer_name
Street_code
Land_size
(Street code is similar to street attribute in the question) Table Name: City
Client_id
Plan_id
Town
Designer_name
Designer_location
5|Page
Plan (Plan_id, Plan_name, Street, Designer_name) Primary key (Plan_id) Foreign key Designer_name References Designer
6|Page
provide
has
Note: All the relationships should be in normal lines. But in my ERD all are in dotted line. The reason is that the designing software did not support for normal lines. Please kindly consider this circumstances.
7|Page
02.) Client (client_id, client _fname, client_lname, client_addres, client_telno, client_email) Primary key(Client_id) Alternative key (client_telno) Plants (plants_id, plant name,height) Primary key (plants_id) Shrubs (shrubs_id, shrubs_name, shabs_type) Primary key (shrubs_id) Plan (plan_id, designer_id, plant_id, shrubs_id, plan_name, plan_land_size) Primary key (plan_id) Foreign key1 designer_id References Designer Foreign key2 plan_id References Plan Foreign key3 shrubs_id References Shrubs Designer (designer_id, client_id, designer_address, designer_phone_nmber, designer_email, designer_size, designer_structure, designer_feature, designer_vegetation) Primary key (designer_id) Foreign key client_id Reference client Structure (Structure_id, plan_id, Structure_type, Structure_name) Primary key (Structure_id) Foreign key plan_id Reference Plan Final_size_shape (size_no, shape_no, plan_id, structure_id, structure_final_shape, structure_final_size, structure_final_shape, structure_final_size) Foreign key1 plan_id Reference Plan Foreign key2 feature_id Reference Features Foreign key3 structure_id Reference Structures Features (feature_id, plan_id, feature_desc, feature_size, feature_shape) Primary key (feature_id) Foreign key plan_id Reference Plan Vegetation (vegetation_id, plan_id, vegetation_type, vegetation_name) Primary key (vegetation_id) Foreign key plan_id Reference Plan Alternative key (vegetation_name)
8|Page