我有看起来像这样的 oracle 表:
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