Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/fundamend/sqlmodels/create_ahbtabellen_view.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DROP VIEW IF EXISTS v_ahbtabellen;

CREATE VIEW v_ahbtabellen AS
WITH consolidated_ahm AS (SELECT id,
anwendungshandbuch_primary_key,
edifact_format_version,
format,
pruefidentifikator,
Expand All @@ -30,6 +31,7 @@ WITH consolidated_ahm AS (SELECT id,
AND (ahm.TYPE != 'dataelement' OR ahm.dataelement_ahb_status IS NOT NULL))

SELECT c.id as id,
c.anwendungshandbuch_primary_key as anwendungshandbuch_primary_key,
c.edifact_format_version as format_version,
c.format as format,
c.pruefidentifikator as pruefidentifikator,
Expand All @@ -56,5 +58,3 @@ FROM consolidated_ahm as c
ON ahe.edifact_format_version = c.edifact_format_version
AND ahe.format = c.format
AND ahe.expression = c.line_ahb_status;