Categorie(CodeCateg,NomCateg,
Categorie
Description)
CREATE TABLE Messager(NoMess,
Messager
NomMess, Tel)
Employe(NoEmp, Nom, Prenom ,
Fonction , TitreCourtoisie ,
DateNaissance , DateEmbauche ,
Employe
Adresse , Ville , Region ,
Codepostal , Pays , TelDom ,
Extension , RendCompteA)
Fournisseur( NoFour, Societe ,
Contact , Fonction , Adresse , Ville
Fournisseur
, Region , CodePostal , Pays , Tel ,
Fax , PageAccueil )
Client(CodeCli, Societe , Contact ,
Client Fonction , Adresse , Ville , Region
, CodePostal , Pays , Tel , Fax )
Produit(Refprod, Nomprod , #NoFour,
#CodeCateg, QteParUnit , PrixUnit
Produit
NUMBER, UnitesStock, UnitesCom,
NiveauReap, Indisponible)
Commande( NoCom, #CodeCli, #NoEmp,
DateCom DATE, ALivAvant DATE,
DateEnv DATE, NoMess , Port ,
Commande
Destinataire , AdrLiv , VilleLiv ,
RegionLiv , CodepostalLiv , PaysLiv
)
CREATE TABLE DetailCommande( Nocom
INT NOT NULL REFERENCES Commande,
DetailCommande Refprod INT NOT NULL REFERENCES
Produit, PrixUnit NUMBER, Qte INT,
Remise NUMBER )
CREATE TABLE test ( cle int primary
test
key, att varchar(30) )