Difference between revisions of "JOIN Quiz"
From SQLZOO
| Line 1: | Line 1: | ||
JOIN quiz | JOIN quiz | ||
<quiz shuffle=none display=simple> | <quiz shuffle=none display=simple> | ||
| − | { | + | {Select the code which shows '''player''' and '''mdate''' for players which scored during 9th June 2012 to 11th June 2012. |
|type="()"} | |type="()"} | ||
| − | - SELECT | + | - SELECT player, mdate FROM goal JOIN eteam ON (teamname=id) WHERE mdate IN ('9 June 2012','10 June 2012','11 June 2012') |
| − | - SELECT | + | - SELECT player, mdate FROM goal JOIN game ON (matchid=id) WHERE mdate IN ('9 July 1912','10 July 1912','11 July 1912') |
| − | + SELECT | + | + SELECT player, mdate FROM goal JOIN game ON (matchid=id) WHERE mdate IN ('9 June 2012','10 June 2012','11 June 2012') |
| − | - SELECT | + | - SELECT player, mdate FROM goal JOIN game ON (matchid=id) WHERE mdate LIKE ('9 June 2012','10 June 2012','11 June 2012') |
| − | - SELECT | + | - SELECT stadium, mdate FROM goal JOIN game ON (matchid=id) WHERE mdate IN ('9 June 2012','10 June 2012','11 June 2012') |
{Which of the following shows the chinese woman's singles winners in the Seoul and Barcelona games? | {Which of the following shows the chinese woman's singles winners in the Seoul and Barcelona games? | ||
| Line 16: | Line 16: | ||
+ SELECT who, city FROM ttws JOIN games ON (ttws.games=games.yr) WHERE city IN ('Barcelona', 'Seoul') AND ttws.country = 'CHN' | + SELECT who, city FROM ttws JOIN games ON (ttws.games=games.yr) WHERE city IN ('Barcelona', 'Seoul') AND ttws.country = 'CHN' | ||
- SELECT who, city FROM ttws JOIN games ON (ttws.games=games.yr) WHERE city IN ('Beijing', 'Seoul') AND ttws.country = 'CHN' | - SELECT who, city FROM ttws JOIN games ON (ttws.games=games.yr) WHERE city IN ('Beijing', 'Seoul') AND ttws.country = 'CHN' | ||
| − | |||
{Which of these shows the korean women's singles winners in order of medal achieved(Ascending order)? | {Which of these shows the korean women's singles winners in order of medal achieved(Ascending order)? | ||
Revision as of 09:01, 3 August 2012
JOIN quiz