我有这个查询:
Select
Sysdate,Sum(Count(P.Init_Dtime))
From Player p,player_source ps
Where
Ps.Group_Id In (44,9,42,15,23,73,45,33,69,63,7,49,96,81,28,57,98,74,92,38)
And P.Player_Id=Ps.Player_Id
and
Trunc(p.Init_Dtime) > Trunc(Sysdate) - 7
And
Trunc(P.Create_Dtime) >= To_Date('2012-mar-01','yyyy-mon-dd')
And Trunc(P.Create_Dtime) < To_Date('2015-sep-9','yyyy-mon-dd')
Group By Trunc(P.Init_Dtime)
Order By Trunc(P.Init_Dtime) Asc
我正在使用“IN”函数来仅包含具有特定数字的 Group_ID。Group_ID 列的值可以是 1-100。如何更改此查询,以使结果包含所有不是 (44,9,42,15,23,73,45,33,69,63,7,49,96,81,28,57,98 的 Group_Id 数字,74,92,38)?