You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT RANK() OVER (PARTITION BY info.dance ORDER BY info.place), info.competition_category_id, info.couple_id, info.dance
FROM (SELECT s.dance, s.place, cat.dances_category, s.couple_id, s.competition_category_id FROM ballroom_database.scores as s JOIN ballroom_database.competition_category as cat
ON cat.competition_category_id = s.competition_category_id) as info