Professional Documents
Culture Documents
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
1.n 1.1
management rules
a customer or several customers that can be ordered 1.n 1.1
one or more photocopier able to place one or more orders 1.n 1.n
a customer 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
CREATE Table technician
Id-tech
registration number-tech
name -tech