Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. SELECT Row_number()
  2. OVER (
  3. partition BY createddate
  4. ORDER BY Count(loggedrecid)) AS Col_group,
  5. Count(loggedrecid),
  6. createddate,
  7. ownerteam
  8. FROM @allrequests
  9. WHERE faculty IN ( @faculty )
  10. GROUP BY createddate,
  11. ownerteam
  12. ORDER BY createddate ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement