Question: Question 1 Construct an entity relationship diagram ( ERD ) for the following situation. [ 1 5 marks ] A person may own any number
Question Construct an entity relationship diagram ERD for the following situation. marksA person may own any number of cars, including noneEach car has exactly one ownerEach car must be registered in a particular countryCars are identified by registration numbersCars can have different engine sizesA person may hold only one passportA passport is issued by a single countryEach person has a name and addressNo two people have the same national numberEach country has an official nameEach passport has a unique passport numberQuestion PART A Normalize the form into a database design, clearly showing the stages of UNF, NFNF and NF State any assumptions you make about the data particularly in relation to any data which you feel is redundant, superfluous, missing or incomplete. marks Please complete the following FOUR parts:Based on Form shown above, write down the unnormalized form. marksIdentify the repeating group of attributes and transform part i into tables that are in st Normal form. Explain the rationale for your decision marksIdentify any partial dependencies in part ii and transform into tables that are in nd Normal Form. Explain the rationale for your decision marksIdentify any transitive dependencies in part iii and transform into tables that are in rd Normal Form. Explain the rationale for your decision marks PART B Create the database for Duraware and softlights based on the normalized tables you obtained in question The physical database can be created using DDL Data Definition Language and manipulated using DML Data Manipulation Language which enable users to access or manipulate data as organized by the appropriate model. marksi Using the CREATE TABLE in any dialect of SQL show the corresponding SQL tables. Indicate the primary key, foreign keys, column names, constraints etc.ii Insert at least sample rows for each identified table. Student must test their database using at least the following:Restriction and ProjectionAliasesNULL value handlingConcatenationComparison OperatorLogical OperatorSortingFunction Group function & Single Row FunctionJoinsSubqueries iii Write SQL statements and queries for each using the following:DDL Data Definition Language. CRETATE DROP, ALTER, TRUNCATEDQL Data Query Language. SELECTDML Data Manipulation Language.INSERT UPDATE, DELETE, CALL, LOCKDCL Data Control Language. GRANT, REVOKETCL Transaction Control Language.COMMIT SAVEPOINT, ROLLBACK, SET TRANSACTION, SET CONSTRAINT
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
