1
我試圖選擇幾個不同的總和,其中之一是OVER (Partition by column_also_in_select_plan)
。Oracle SQL:sum(case then then quantity else 0 END)OVER(partition by ...)=無法獲得正確的GROUP BY語句
但是,我似乎無法得到正確的GROUP BY
聲明。
例子:
Select 1, 2, 3, sum(4) over (partition by 3), sum(case when 6 = etc...)
FROM table
Where filters
GROUP BY ?
感謝您的任何提示:)