Dbms Assignment: Solution
Dbms Assignment: Solution
Identify all entity types, attributes, relationship types and in the following case. Hence draw an entity-relationship diagram. An organization makes many models of cars, where a model is characterized by a name and a suffix (such as GL or XL which indicates the degree of luxury) and an engine size. Each model is made up from many parts and each part may be used in the manufacture of more than one model. Each part has a description and an id code. Each model of car is produced at just one of the firm's factories, which are located in London, Birmingham, Bristol, Wolverhampton and Manchester - one in each city. A factory produces many models of car and many types of part although each type of part is produced at one factory only. SOLUTION:
SUFFIX
NAME
ENGINE SIZE
DESCRIPTI ON
CAR MODELS M M
PRODUC ES
ID CODE
PART
MADE _OF
1 1 1 FACTORY
MANUFA CTURE
LOCATIO N
SOLUTION:
1ST NORMAL FORM (1NF) CLIENT TABLE: ClientNo CR76 CR56 CName Jay Mehta Bipasha
PROPERTY TABLE: ClientNo PropertyNo CR76 PG4 Paddress 6 East street Camp; Pune 46,Senapati BapatRd,Pune 6 East street Camp; Pune BhelkeNagarKothrud; Pune 46,Senapati BapatRd,Pune rentStart 1-Jul-00 rentFinish 31-Aug-01 rent 350 OwnerNo CO40 O_Name
AvinashBhosale
CR76 CR56
PG16 PG4
1-Sep-02 1-Sep-99
1-Sep-02 10-Jun-00
450 350
CO93 CO40
SandeshShinde AvinashBhosale
CR56 CR56
PG36 PG16
10-Oct-00 1-Nov-02
1-Dec-01 1-Aug-03
370 450
CO93 CO93
SandeshShinde SandeshShinde
PROPERTY TABLE: PropertyNo PG4 Paddress 6 East street Camp; Pune 46,Senapati BapatRd,Pune BhelkeNagarKothrud;Pune rent 350 OwnerNo CO40 O_Name
AvinashBhosale
PG16 PG36
450 370
CO93 CO93
SandeshShinde SandeshShinde
PROPERTY TABLE: PropertyNo PG4 Paddress 6 East street Camp; Pune rent 350 OwnerNo CO40
PG16 PG36
CO93 CO93