我有两个查询:
Select trunc(create_dtime) as Day, Count(Player_Id) as New_Users
From Player
Where Trunc(Create_Dtime) >= To_Date('2012-Jan-01','yyyy-mon-dd')
Group By Trunc(Create_Dtime)
和
Select trunc(create_dtime) as Day,Count(Player_Id) as Retained_Users
From Player
Where Trunc(Create_Dtime) >= To_Date('2012-Jan-01','yyyy-mon-dd')
And Trunc(Init_Dtime) >= Trunc(Sysdate) - 7
Group By Trunc(Create_Dtime)
Order By Day Asc
每天都有一个价值,我想将这两个查询连接在一起,所以我只有一个查询而不是两个。