Advertisement
eento

Untitled

Jun 16th, 2014
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. SELECT COUNT(bet)
  2. from User user
  3. join user.bets bet
  4. join bet.match match
  5. join match.competition competition
  6. where user.id= :userId and competition.id= :competitionId and bet.value IS EMPTY;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement