SELECT "Lot"
, MAX(DECODE("Test-mode", 'PROD', "Value", NULL)) "PROD-Value"
, MAX(DECODE("Test-mode", 'ENG', "Value", NULL)) "ENG-Value"
FROM "TABLE1"
GROUP BY "Lot"
ORDER BY "Lot"
※ 引述《SuLaPKLa (= =)》之銘言:
: (針對 SQL 語言的問題,用這個標題。請用 Ctrl+Y 砍掉這行)
: 資料庫名稱:Oracle
: 內容/問題描述:
: TABLE1
: