Sunteți pe pagina 1din 2

Open SQL Challenge

Story:
We need your help! The unit test (ADT Shortcut CTRL+SHIFT+F10) of class zcl_chl_osql_##
fail (red status indicator) and we need to deliver the software within the next hour.

Data Model

PRODUCT
ZA4H_SQL_Exercise_Base
Product_Key = Node_Key (SNWD_PD)

name_guid = parent_key

TEXT - all languages


(SNWD_TEXTS)

SALES ORDER BUSINESS PARTNER


(SNWD_SO) buyer_guid = node_key (SNWD_BPA)

node_key = parent_key

SALES ORDER ITEM


(SNWD_SO_I)

Challenge: Can you please solve the unit test puzzle and save the shipment of our product?

Hints (which you certainly won’t need) can be found on the reverse side of this document.

SAP CodeJam ABAP for SAP HANA with Fiori


Open SQL Challenge

Hints:
1. COUNT( * ) Determines the number of rows in the resulting set or in the current group.

2. If you want number of distinct values you can write COUNT ( DISTINCT field ).

3. NULL values are counted as 0 in the count statement.

4. You can generate NULL Values in LEFT or RIGHT OUTER JOIN constructs

5. The addition GROUP BY combines groups of rows that have the same content in their specified
columns col1 col2 ... in the resulting set into a single row.

SAP CodeJam ABAP for SAP HANA with Fiori

S-ar putea să vă placă și