Created
February 13, 2019 23:56
-
-
Save gunnarig/01a077852735846dec36824ece847f4c 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 distinct people.id as peopleID, people.name from people where id in | |
(select distinct peopleid from results where competitionid in | |
(select id from competitions where held >= '2002-06-01'::date and held < '2002-07-01'::date)) | |
or id in (select distinct peopleid from results where sportid = (select id from sports where name = 'High Jump') | |
and result = (select record from sports where name = 'High Jump')) order by people.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment