Skip to content

Create another view that represents the kohlrahbi flatahb #115

@hf-kklein

Description

@hf-kklein
          weitere sicht ist vertagt

Originally posted by @hf-kklein in #111 (comment)

see better sql below: #115 (comment)

DROP VIEW IF EXISTS kohlrahbi_flatahb;
CREATE VIEW kohlrahbi_flatahb as
   SELECT edifact_format_version as format_version,
          pruefidentifikator as pruefidentifikator,
          kommunikation_von as direction,
          beschreibung as description,
          'SG' || segmentgroup_id as segmentgroup_key, -- eg 'SG6'
          segment_id as segment_code, -- e.g 'NAD'
          dataelement_id as data_element, -- e.g 'D_3035'
		 ...
       FROM ahb_hierarchy_materialized
ORDER BY sort_path;

 --still missing:
    segment_id: Optional[str]
    value_pool_entry: Optional[str]
    name: Optional[str]
    ahb_expression: Optional[str]
    conditions: Optional[str]
    section_name: Optional[str]
    index: Optional[int]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions