Code: Alles auswählen.
loop at itab_db into wa.
lese Ergebnistabelle mit ID
Wenn vorhanden, dann hänge text an bestehenden text dran und sichere die ÄÄnderung in Ergebnistabelle
wenn nicht vorhanden dann append an ergebnistabelle
endloop.
Grüße 4byte
Code: Alles auswählen.
SELECT char1 && '_' && char2 AS group,
MAX( num1 + num2 ) AS max,
MIN( num1 + num2 ) AS min,
MIN( num1 * num2 ) AS min_product
FROM demo_expressions
GROUP BY char1, char2
ORDER BY group
INTO TABLE @DATA(grouped).
out->write( grouped ).