oracle 分組排序取前幾行,並把數據行轉列

完成的SQL SELECT ooefl003 as 成本中心, max(case when RN=1 then sfaadocno else ' ' end) as 在制工單, max(case when RN=1 then imaal001||':'||imaal003 else ' ' end) as 在制工單產品, max(case when RN=1 then SFAA019 else n
相關文章
相關標籤/搜索