我有一个 SQL Server 2005 表,它记录了一个过程的每个步骤,如下所示
ResourceID EventType Time
ABC123 Job Activated 2013-01-08 10:01:31.000
ABC123 Download Complete 2013-01-08 10:03:32.000
ABC123 Job Complete 2013-01-08 10:07:42.000
XYZ789 Job Activated 2013-01-08 12:05:11.000
XYZ789 Download Complete 2013-01-08 12:08:52.000
XYZ789 Job Complete 2013-01-08 12:14:21.000
我想做的是显示一个结果,每个结果都有一行ResourceID
,显示每个事件的时间。
ResourceID Job Activated Download Complete Job Complete
ABC123 2013-01-08 10:01:31.000 2013-01-08 10:03:32.000 2013-01-08 10:07:42.000
XYZ789 2013-01-08 12:05:11.000 2013-01-08 12:08:52.000 2013-01-08 12:14:21.000
关于如何做到这一点的任何建议?谢谢。