Created
June 14, 2018 13:24
-
-
Save querafael/f038faeb3ed4f90493733abaae6c23f2 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
-- Brazil | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'Brazil' | |
-- Germany | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'Germany FR' or "Winner" = 'Germany' or "Winner" = 'Germany DR' | |
-- Italy | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored" as "Total Goals", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'Italy' | |
-- Argentina | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'Argentina' | |
-- Uruguay | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'Uruguay' | |
-- England | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'England' | |
-- France | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'France' | |
-- Spain | |
select | |
"ID" as "Year", | |
"Winner", "Second", "Third", "Fourth", | |
"Country", "Name" as "Host Country", "Matches Played", "Goals Scored", | |
"Attendance" | |
from T_WORLDCUP where "Winner" = 'Spain' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment