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
: