Professional Documents
Culture Documents
INTRODUCTION
Client Photocopieur
Id-ph Technician
Id-cl Id-tech
name-cl Brand -ph
model-ph registration number-tech
surname -cl name -tech
address-cl date -ph
Dictionary of data
Client
Photocopier
Field Description Data type Data size Constraint
Id-ph
Brand -ph
model-ph
date -ph
technician
Association
Customer Photocopier Technician
Id-cl Id-ph Id-tech
Object of com
name-cl Brand -ph registration
surname -cl model-ph number-tech
passe
address-cl date -ph name -tech
cardinalities
1.n 1.1
management rules
a customer or several customers that can be ordered photocopier 1.n 1.1
one or more photocopier able to place one or more orders costumer 1.n 1.n
a technician can order one or more products 1.1 1.n
MLD : association become tables with relationships also certain technical notions are
introduced namely the foreign and primary key
primary key : is an identifier of a record it allows you to differentiate two records
from the same table in a clear and unique way
foreign key
MPD :
they are modular representation before the implementation of the system on SQL
in this level we proceed to the creation of our database
CREATE Database if not exist customer -dp
use customer -db
CREATE table customer
Id-cl
name-cl
surname -cl
address-cl
CREATE table photocopier
Id-cl auto incrent constraint Primary key
Id-ph
Brand -ph
model-ph
date -ph
the SQL
Id-cl text
name-cl text
surname -cl text
address-cl text
create table if does not existe photocopier
id-ph integer constraint primary key
monfth-text
model-text
date