創建類別的列名我有Oracle表看起來像這樣:從一列在SQL
ID---Date------------Type
1 | 01/01/2013 | Install Date
1 | 05/01/2013 | Complete Date
1 | 10/01/2013 | Closed Date
2 | 02/01/2013 | Install Date
2 | 03/02/2013 | Closed Date
3 | 10/01/2013 | Install Date
3 | 13/01/2013 | Closed Date
4 | 07/01/2013 | Install Date
4 | 09/01/2013 | Complete Date
4 | 17/01/2013 | Closed Date
我想實現的是查詢該得到結果是這樣的:
ID--InstallDate--CompleteDate--ClosedDate------
1 | 01/01/2013 | 05/01/2013 | 10/01/2013
2 | 02/01/2013 | --null-----| 03/02/2013
3 | 10/01/2013 | --null-----| 13/01/2013
4 | 07/01/2013 | 09/01/2013 | 17/01/2013
你有一個具體問題與您的代碼? – Artless