Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT COUNT(bet)
- from User user
- join user.bets bet
- join bet.match match
- join match.competition competition
- where user.id= :userId and competition.id= :competitionId and bet.value IS EMPTY;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement