Demo_Cds_Avg

DDL: DEMO_CDS_AVG SQL: DEMOCDSAVG Type: view

Demo_Cds_Avg is a CDS View in SAP S/4HANA. It reads from 1 data source (demo_expressions) and exposes 3 fields.

Data Sources (1)

SourceAliasJoin Type
demo_expressions demo_expressions from

Annotations (2)

NameValueLevelField
AbapCatalog.sqlViewName DEMOCDSAVG view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (3)

KeyFieldSource TableSource FieldDescription
avg_no_type
avg_dec0
avg_dec2

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view Demo_Cds_Avg.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: DEMOCDSAVG

CREATE VIEW Demo_Cds_Avg AS
SELECT
  avg( num1 ) AS avg_no_type,
  avg( num1 as abap.dec(10,0) ) AS avg_dec0,
  avg( num1 as abap.dec(12,2) ) AS avg_dec2
FROM demo_expressions
;