Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. Select Sum(Actions) From
  2. (
  3. Select
  4. Count(Create_Dtime) As Actions
  5. From Player_Tapjoy
  6. Where
  7. Trunc(Create_Dtime) = To_Date('2012-sep-12','yyyy-mon-dd')
  8. Union All
  9. Select
  10. Count(Create_Dtime) As Actions
  11. From Player_aux_pt
  12. Where Site = 'AppCircle' And
  13. Trunc(Create_Dtime) = To_Date('2012-sep-12','yyyy-mon-dd')
  14. );
  15.  
  16. Select Player_Id From Player_Source S Inner Join Feature_Group_Xref F
  17. On S.Group_Id=F.Group_Id
  18. where f.feature_name = 'BC'
  19.  
  20. Select Sum(Actions) From
  21. (
  22. Select
  23. Count(t.Create_Dtime) As Actions
  24. From Player_Tapjoy t inner join player_source s on (t.player_id = s.player_id)
  25. Inner Join Feature_Group_Xref F On (S.Group_Id=F.Group_Id and f.feature_name = 'BC')
  26. Where Trunc(t.Create_Dtime) = To_Date('2012-sep-12','yyyy-mon-dd')
  27. Union All
  28. Select
  29. Count(a.Create_Dtime) As Actions
  30. From Player_aux_pt a inner join player_source s on (a.player_id = s.player_id)
  31. Inner Join Feature_Group_Xref F On (S.Group_Id=F.Group_Id and f.feature_name = 'BC')
  32. Where a.Site = 'AppCircle' And
  33. Trunc(a.Create_Dtime) = To_Date('2012-sep-12','yyyy-mon-dd')
  34. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement