Dear all,
I want to display some data from a sql source in an apex table in the pivot way. I habe some table as a source, and with
select * from
(
select -- mit der Vortabelle nochmal alles auslesen und das Pivot erstellen
w.*,
t.CNT_TOTAL,
t.ALARM,
t.TYPE_HTTP
from command.WDR_APEX_LAGERWARE_SFP w
--
left join TOTALS t on t.TYPE = w.TYPE
)
pivot
(
sum(CNT) for LAGER in ('1 - IFS Warenerfassung', '2 - IFS-Lager Montage', '3a - IFS-Zentrallager IT', '3m - IFS Ludwigstr. Stage', '5d - NuS-Lager Quincy N226',
'5e - Cisco SFP Support Lager', '5g - IFS - NuS Miniswitche Berlich 411')
);
I try to pivot the data. It works - but it's certainly not dynamic! Each time I have a new LAGER in the source table, or if the name of a LAGER changes, I must edit the sql code underlying the pivot table in apex. That's far from cool, and is quite the opposite of what apex states to be: a low code ide.
I would ask for implementing an easier way to pivot, may it be through implementing a petter pivot function in Oracle SQL, or having some cool item in apex which does the handling in the background.
Thank you
Stefan
WDR Cologne