Created
July 6, 2020 21:49
-
-
Save joaobibiano/100bf332fff0f6c24faa1b0501fc4cf3 to your computer and use it in GitHub Desktop.
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
SELECT | |
"class"."id" AS "class_id", | |
"class"."createdAt" AS "class_createdAt", | |
"class"."updatedAt" AS "class_updatedAt", | |
"class"."title" AS "class_title" | |
FROM | |
"class" "class" | |
INNER JOIN | |
"time_availability" "timeAvailability" | |
ON "timeAvailability"."classId" = "class"."id" | |
INNER JOIN | |
"class_picture" "pictures" | |
ON "pictures"."classId" = "class"."id" | |
INNER JOIN | |
"file" "file" | |
ON "pictures"."fileId" = "pictures"."fileId" | |
INNER JOIN | |
"class_extra_detail" "classExtraDetails" | |
ON "classExtraDetails"."classId" = "class"."id" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment