Hi Krishna and Peter,
Talk about being in sync!
When you both replied I was actually looking at the document krishna sent. I tried that method just now but I keep getting a syntax error.
SELECT "LAND2","WGBEZ_2",sum("DMBE2") FROM
(SELECT "LAND2","WGBEZ_2",sum("DMBE2"),RANK() OVER (PARTITION BY "LAND2","WGBEZ_2" ORDER BY sum("DMBE2") DESC) AS RANK_NUM
FROM "_SYS_BIC"."GSA_TEST/GSA3")
;
SAP DBTech JDBC: [257] (at 97): sql syntax error: incorrect syntax near "(": line 2 col 52 (at pos 97)
I'm pretty sure I'm missing something obvious...
Its pretty much the same as u sent, just changed the columns. Could this be because I have anolder HANA version?