
复制select A.Date,数数据A.MID,A.Contents1,B.Contents2,B.Passed from (select ROW_NUMBER() over(partition by Date order by Date) as MID,Date,Contents as Contents1 from History where Type=0 ) A left join (select ROW_NUMBER() over(partition by Date order by Date) as MID,Date,Contents as Contents2,Passed from History where Type=1 ) B on A.Date=B.Date and A.MID=B.MID union select B.Date,B.MID, A.Contents1,B.Contents2,B.Passed from (select ROW_NUMBER() over(partition by Date order by Date) as MID,Date,Contents as Contents1 from History where Type=0 ) A right join (select ROW_NUMBER() over(partition by Date order by Date) as MID,Date,Contents as Contents2,Passed from History where Type=1) B on A.Date=B.Date and A.MID=B.MID 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.


相关文章
精彩导读
热门资讯
关注我们
