我有一个名为 TEST_HIST 的表,每天都会更新 1800 次测试中每个测试的 PASS/FAIL 状态。该表位于 Oracle 10 中。
我需要生成以下报告,其中每个每日结果集都出现在列中
ID 05/07/13 05/08/13 05/09/13
A0001 PASS PASS PASS
G0002 FAIL FAIL FAIL
X0003 FAIL PASS PASS
表 TEST_HIST 如下所示:
ID, Date, Test_Result
'A0001','05/07/13','PASS'
'G0002','05/07/13','FAIL'
'X0003','05/07/13','FAIL'
'A0001','05/08/13','PASS'
'G0002','05/08/13','FAIL'
'X0003','05/08/13','PASS'
'A0001','05/09/13','PASS'
'G0002','05/09/13','FAIL'
'X0003','05/09/13','PASS'
谢谢你。