Last active
September 5, 2018 09:32
-
-
Save sandyGanoti/1393126db0e72dcf1e26c35473bbdfbd to your computer and use it in GitHub Desktop.
put all user_ids that belong to a specific contest, to a specific leaderboard -- (no duplicate users)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert ignore into scoregroups.user_leaderboard(user_id, leaderboard_id) select distinct(pickem_entry.user_id), "<leaderboard_id_HERE>" from pickem.entry as pickem_entry where pickem_entry.contest_id=<contest_id_HERE>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment