-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsg_inserts.sql
65 lines (51 loc) · 2.24 KB
/
sg_inserts.sql
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--SELECT 'DELETE FROM ' || table_name || ';' FROM user_Tables;
DELETE FROM EZV_GRUPPE;
DELETE FROM SUBAREA;
DELETE FROM AREA;
DELETE FROM KOKILLE;
DELETE FROM PFANNE;
DELETE FROM VERTEILER;
DELETE FROM FORMAT;
-- Inserts Format
INSERT INTO FORMAT(id, hoehe, breite) values (0, 10, 20);
INSERT INTO FORMAT(id, hoehe, breite) values (1, 20, 40);
INSERT INTO FORMAT(id, hoehe, breite) values (2, 22, 44);
-- Inserts Verteiler
INSERT INTO VERTEILER(id, name, age) values (0, 'Verteiler A', 0);
INSERT INTO VERTEILER(id, name, age) values (1, 'Verteiler B', 150);
INSERT INTO VERTEILER(id, name, age) values (2, 'Verteiler C', 200);
-- Inserts Pfanne
INSERT INTO PFANNE(id, name, age) values (0, 'Pfanne A', 0);
INSERT INTO PFANNE(id, name, age) values (1, 'Pfanne B', 175);
INSERT INTO PFANNE(id, name, age) values (2, 'Pfanne C', 220);
-- Insert Kokille
INSERT INTO KOKILLE(id, format_id, name, age) values (0, 0, 'Kokille A', 3);
INSERT INTO KOKILLE(id, format_id, name, age) values (1, 2, 'Kokille B', 23);
INSERT INTO KOKILLE(id, format_id, name, age) values (2, 1, 'Kokille C', 123);
-- Inserts Area
INSERT INTO AREA(id, name) values (0, 'PFANNE');
INSERT INTO AREA(id, name) values (1, 'VERTEILER');
INSERT INTO AREA(id, name) values (2, 'STRANG');
-- Inserts Subarea
INSERT INTO SUBAREA(id, area_id, name) values (0, 1, 'Stopfen');
INSERT INTO SUBAREA(id, area_id, name) values (1, 1, 'Gießrohr');
INSERT INTO SUBAREA(id, area_id, name) values (2, 2, 'Biegezone');
INSERT INTO SUBAREA(id, area_id, name) values (3, 2, 'Kreiszone');
INSERT INTO SUBAREA(id, area_id, name) values (4, 2, 'Richtzone');
-- Inserts EZV_Gruppe
INSERT INTO EZV_GRUPPE(id, name) values (0, 'Stahl');
INSERT INTO EZV_GRUPPE(id, name) values (1, 'Stahl Rostfrei');
INSERT INTO EZV_GRUPPE(id, name) values (2, 'Blech');
-- Insert
INSERT INTO EZV(id, ezv_gruppe_id, name) values (0, 1, 'Spezialstahl');
INSERT INTO EZV(id, ezv_gruppe_id, name) values (1, 2, 'Autoblech');
INSERT INTO EZV(id, ezv_gruppe_id, name) values (3, 2, 'Kühlschrankblech');
-- Inserts
SELECT * FROM FORMAT;
SELECT * FROM VERTEILER;
SELECT * FROM PFANNE;
SELECT * FROM KOKILLE;
SELECT * FROM AREA;
SELECT * FROM SUBAREA;
SELECT * FROM EZV_GRUPPE;
SELECT * FROM EZV;