Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Select CustUserId, COUNT(CustUserId)
  2. FROM Bookings with (nolock)
  3. WHERE FirstTimeBooking = 1
  4. GROUP BY CustUserId
  5. HAVING COUNT(CustUserId) > 1
  6. ORDER BY COUNT(CustUserId) DESC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement