-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtp02.sql
More file actions
39 lines (32 loc) · 1.1 KB
/
tp02.sql
File metadata and controls
39 lines (32 loc) · 1.1 KB
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
---------------------------
-- INSERTION FOURNISSEUR --
---------------------------
INSERT INTO fournisseur(id, nom) VALUES
(1, 'Française d''Import'),
(2, 'FDM SA'),
(3, 'Dubois & Fils');
------------------------
-- INSERTION ARTICLES --
------------------------
INSERT INTO article(id, ref, designation, prix, id_fou) VALUES
(1, 'A01', 'Perceuse P1', 74.99, 1),
(2, 'F01', 'Boulon laiton 4 x 40 mm (sachet de 10)', 2.25, 2),
(3, 'F02', 'Boulon laiton 5 x 40 mm (sachet de 10)', 4.45, 2),
(4, 'D01', 'Boulon laiton 5 x 40 mm (sachet de 10)', 4.40, 3),
(5, 'A02', 'Meleuse 125mm', 37.85, 1),
(6, 'D03', 'Boulon acier zingué 4 x 40mm (sachet de 10)', 1.8, 3),
(7, 'A03', 'Perceuse à colonne', 185.25, 1),
(8, 'D04', 'coffret mêches à bois', 12.25, 3),
(9, 'F03', 'Coffret mêches plates', 6.25, 2),
(10, 'F04', 'Fraises d''encastrement', 8.14, 2);
-------------------
-- INSERTION BON --
-------------------
INSERT INTO bon(id, numero, delai, id_fou) VALUES(1, 1, 3, 1);
---------------------
-- INSERTION COMPO --
---------------------
INSERT INTO compo(qte, id_art, id_bon) VALUES
(3, 1, 1),
(4, 5, 1),
(1, 7, 1);