Escolar Documentos
Profissional Documentos
Cultura Documentos
Car Company
Car Dealers &
Customers
Data Type
Size
Varchar2(5)
compname
headquarters
Varchar2(10)
Varchar2(10)
contactno
Number(10)
emailid
Varchar2(20)
description
Varchar2(50)
Model:
Column Name
modelid
Data Type
Size
Varchar2(5)
modelname
year
type
price
compid
Varchar2(10)
Number(4)
Varchar2(10)
Number(10)
Number(5)
Dealer:
& Constrain
ts
Primary
Key
Description
& Constrain
ts
Primary
Key
Description
Foreign
Key
Unique
ID
for
Car
Company
Name of the Company
Headquarters of the
company
Contact
Number
of
Company
Official
mail-ID
of
Company
Description
of
the
Company
Column Name
dealerid
Data Type
Size
Varchar2(5)
dealername
dealerlocation
type
Varchar2(10)
Number(4)
Varchar2(10)
compid
Number(5)
Customer:
Column Name
customerid
Data Type
Size
Varchar2(5)
customername
purchasedate
status
Varchar2(10)
Number(4)
Varchar2(10)
dealerid
Varchar2 (5)
modelid
Varchar2(10)
& Constrain
ts
Primary
Key
Foreign
Key
Foreign
Key
& Constrain
ts
Primary
Key
Foreign
Key
Foreign
Key
Description
Unique ID for Car Dealer
Name of the Car Dealer
Location of Dealership
Existing type in Model
Table
Existing
Compid
in
Company Table
Description
Unique
ID
for
Car
Customer
Name of the Customer
Date of Purchase
Status(Booked,
Enquired, purchased)
Existing
dealerid
in
Dealer Table
Existing
modelid
in
Model Table