SELECT * FROM runners WHERE id NOT IN (SELECT winner_id FROM races)
0
Posts
Options
SixCaches Tweets in the mainframe cyberhexRegistered Userregular
edited June 2016
It will select the items in the runners table whose winner_id does not appear in the races table. Presumably it will tell you all the runners who have not won a race.
Posts