I want to do something like below:
DELETE UserPredictions GROUP BY UserId HAVING COUNT(*) < 500
But I\'m getting a syntax error. Is
Try this nested query:
DELETE FROM UserPredictions WHERE UserId IN (SELECT UserId FROM UserPredictions GROUP BY UserId HAVING COUNT(*) < 500)