The National Housing Trust (NHT) was contracted to erect buildings at a variety of locations to serve the electoral officers in the forth-coming election. Each building requires a number of different types of materials in quantities that vary by building.
Different crews carry out different portions of the project and these crews are assigned to different dates to work on the building.
Workers are assigned to different crews, depending on their skills. A foreman is assigned to a particular crew for a particular building. A worker can be a foreman on one crew and simply a worker on another crew.
Create a simple Data Model for the above description
Represent the Data Model using a Data Definition Language.
Study the Data Definition Language (DDL) below and draw an equivalent Data Model it may represent:
CLIENT (CLIENT-ID, CLIENT-NAME, ANNUAL-REVENUE)
TRANSPORT (TRANS#, CLIENT-ID, WEIGHT, LORRY#, DESTINATION)
Foreign key: DESTINATION REFERENCES TOWN-NAME
LORRY (LORRY#, DRIVER-NAME)
TOWN-NAME (TOWN-CODE, POPULATION)
Study the Data Definition Language below:
WORKER (WORKER-ID, NAME, AGE)
WK-SITE (WORKER-ID, BLDG-ID, ASSIGN-DATE NAME TYPE)
Foreign keys: WORKER-ID, REFERENCES WORKER
BLDG-ID REFERENCES BLDG-LOCATION
BLDG-LOCATION (BLDG-ID, ADDRESS, TYPE)
List partial dependencies that can result in anomalies in the Data model
Explain briefly how the Data Model should be normalized before implementation.
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.