Professional Documents
Culture Documents
Business Intelligence
CUSTOMER
33
1
19/09/2022
CUSTOMER
Customer number
Customer name
2
19/09/2022
CUSTOMER
Customer number
Customer fiscal code
Customer name
Street & Number
Zip code
Customer city
Customer country
Customer phone
36
Main key
To be transformed in
a foreign key
37
3
19/09/2022
City_id City_name
Main key Foreign key
Primary key Secondary key 163 Clermont-Ferrand
…
Link, joint
Customer_id Customer_name City_id … between two
1231 Alpha 163 tables
CUSTOMER
Customer_id
Customer_name
CITY …
1,n 1,1
City_id City_id
City_name …
… …
Cardinality 1,n : Cardinality 1,1 :
in a city, the society a customer with a
has one customer specific address
or more (2, 3, …n) belongs to one city
and only one
39
4
19/09/2022
CUSTOMER
Customer_id
Fiscal_code
Customer_name
address1
address2
City_id
Country
Phone
Customer_contact
Our_vendor
Activity_sector 40
COUNTRY CUSTOMER
Country_id Customer_id
Country_name Fiscal_code
Customer_name
address1
CITY address2
City_id City_id
City_name Phone
Country_id www
Customer_contact
Joint with a table Vendor
Vendor_id
Joint with a table Activity_sector Activity_sector_id 41
5
19/09/2022
Table : Article
Table : Family_art
article article Catalog family 1,1 1,n Family Family
_id description price _id _id description
12345 shirt relax 6,80 44 43 T-shirt/polo shirt
12346 shirt relax 6,10 44 44 Shirt/jumper
12348 shirt city 7,40 44 45 Sweater
43
6
19/09/2022
No link between
these tables, no
query possible
44
Insert tables and fields which are necessary to register an order of articles
from customers
45
7
19/09/2022
46
Solution
47
8
19/09/2022
48
49