1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
CREATE TABLE VENTE
(num_client int,
num_produit int,
quantité int,
date_du_jour int,
num_lot int
);
CREATE TABLE LOT
(num_lot int,
num_client int ,
num_produit int,
date_livraison int,
quantité_produit int
);
INSERT INTO LOT (um_lot,num_client,num_produit,date_livraison,quantité_produit)
VALUES(87,34,658,20121128,900);
INSERT INTO LOT (um_lot,num_client,num_produit,date_livraison,quantité_produit)
VALUES(89,34,658,20121206,700);
INSERT INTO LOT (um_lot,num_client,num_produit,date_livraison,quantité_produit)
VALUES(91,34,658,20121220,1000);
INSERT INTO LOT (um_lot,num_client,num_produit,date_livraison,quantité_produit)
VALUES(102,34,658,20121229,1000);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,193,20121209,87);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,145,20121210,89);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,125,20121211,89);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,146,20121212,89);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,167,20121213,89);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,112,20121214,89);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,154,20121215,89);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,125,20121216,90);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,156,20121217,90);
INSERT INTO VENTE (num_client,num_produit,quantité, date_du_jour, num_lot)
VALUES (34,658,189,20121218,90); |
Partager