Created
June 12, 2011 16:25
-
-
Save ybart/1021727 to your computer and use it in GitHub Desktop.
This file contains 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
SELECT "rankings"."id", "rankings"."rank", "rankings"."progress", "rankings"."vote_count", "rankings"."vote_score", "rankings"."pal_count", "rankings"."pal_score", "rankings"."clip_id", "rankings"."jtop_id", "rankings"."prev_jtop_id" | |
FROM "clips", "rankings" | |
INNER JOIN "artists" ON "clips"."artist_id" = "artists"."id" | |
INNER JOIN "clips" ON "rankings"."clip_id" = "clips"."id" | |
WHERE "rankings"."jtop_id" = 80 | |
GROUP BY "rankings"."id", "rankings"."rank", "rankings"."progress", "rankings"."vote_count", "rankings"."vote_score", "rankings"."pal_count", "rankings"."pal_score", "rankings"."clip_id", "rankings"."jtop_id", "rankings"."prev_jtop_id" | |
ORDER BY "artists"."name", "clips"."title"; | |
ERROR: invalid reference to FROM-clause entry for table "clips" | |
LINE 1: ... FROM "clips", "rankings" INNER JOIN "artists" ON "clips"."a.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The fixed query: