@@ -25,7 +25,8 @@ WITH RECURSIVE
25
25
af .beschreibung ,
26
26
af .kommunikation_von ,
27
27
ah .edifact_format_version ,
28
- af .anwendungshandbuch_primary_key
28
+ af .anwendungshandbuch_primary_key ,
29
+ null as is_on_uebertragungsdatei_level
29
30
FROM segmentgroup sg
30
31
JOIN anwendungsfall af ON sg .anwendungsfall_primary_key = af .primary_key
31
32
JOIN anwendungshandbuch ah ON af .anwendungshandbuch_primary_key = ah .primary_key
@@ -34,8 +35,8 @@ WITH RECURSIVE
34
35
35
36
SELECT s .primary_key ,
36
37
s .position ,
37
- ' segment' AS type,
38
- s .id AS root_id_text,
38
+ ' segment' AS type,
39
+ s .id AS root_id_text,
39
40
s .name ,
40
41
s .ahb_status ,
41
42
s .anwendungsfall_primary_key ,
@@ -48,7 +49,8 @@ WITH RECURSIVE
48
49
af .beschreibung ,
49
50
af .kommunikation_von ,
50
51
ah .edifact_format_version ,
51
- af .anwendungshandbuch_primary_key
52
+ af .anwendungshandbuch_primary_key ,
53
+ s .is_on_uebertragungsdatei_level as is_on_uebertragungsdatei_level
52
54
FROM segment s
53
55
JOIN anwendungsfall af ON s .anwendungsfall_primary_key = af .primary_key
54
56
JOIN anwendungshandbuch ah ON af .anwendungshandbuch_primary_key = ah .primary_key
@@ -83,7 +85,7 @@ WITH RECURSIVE
83
85
o .kommunikation_von ,
84
86
o .edifact_format_version ,
85
87
o .anwendungshandbuch_primary_key ,
86
-
88
+ o . is_on_uebertragungsdatei_level ,
87
89
CASE WHEN o .type = ' segment_group' THEN o .root_id_text ELSE NULL END AS segmentgroup_id,
88
90
CASE WHEN o .type = ' segment_group' THEN o .name ELSE NULL END AS segmentgroup_name,
89
91
CASE WHEN o .type = ' segment_group' THEN o .ahb_status ELSE NULL END AS segmentgroup_ahb_status,
@@ -142,6 +144,7 @@ WITH RECURSIVE
142
144
h .kommunikation_von ,
143
145
h .edifact_format_version ,
144
146
h .anwendungshandbuch_primary_key ,
147
+ h .is_on_uebertragungsdatei_level ,
145
148
146
149
' SG' || child .id ,
147
150
child .name ,
@@ -199,7 +202,7 @@ WITH RECURSIVE
199
202
h .kommunikation_von ,
200
203
h .edifact_format_version ,
201
204
h .anwendungshandbuch_primary_key ,
202
-
205
+ s . is_on_uebertragungsdatei_level ,
203
206
h .segmentgroup_id ,
204
207
h .segmentgroup_name ,
205
208
h .segmentgroup_ahb_status ,
@@ -255,7 +258,7 @@ WITH RECURSIVE
255
258
h .kommunikation_von ,
256
259
h .edifact_format_version ,
257
260
h .anwendungshandbuch_primary_key ,
258
-
261
+ h . is_on_uebertragungsdatei_level ,
259
262
h .segmentgroup_id ,
260
263
h .segmentgroup_name ,
261
264
h .segmentgroup_ahb_status ,
@@ -311,7 +314,7 @@ WITH RECURSIVE
311
314
h .kommunikation_von ,
312
315
h .edifact_format_version ,
313
316
h .anwendungshandbuch_primary_key ,
314
-
317
+ h . is_on_uebertragungsdatei_level ,
315
318
h .segmentgroup_id ,
316
319
h .segmentgroup_name ,
317
320
h .segmentgroup_ahb_status ,
@@ -368,7 +371,7 @@ WITH RECURSIVE
368
371
h .kommunikation_von ,
369
372
h .edifact_format_version ,
370
373
h .anwendungshandbuch_primary_key ,
371
-
374
+ h . is_on_uebertragungsdatei_level ,
372
375
h .segmentgroup_id ,
373
376
h .segmentgroup_name ,
374
377
h .segmentgroup_ahb_status ,
@@ -424,7 +427,7 @@ WITH RECURSIVE
424
427
h .kommunikation_von ,
425
428
h .edifact_format_version ,
426
429
h .anwendungshandbuch_primary_key ,
427
-
430
+ h . is_on_uebertragungsdatei_level ,
428
431
h .segmentgroup_id ,
429
432
h .segmentgroup_name ,
430
433
h .segmentgroup_ahb_status ,
0 commit comments