目录

(选择对应题目直接跳转即可)

1. You want to find the stadium where player 'Dimitris Salpingidis' scored. Select the JOIN condition to use:

2. You JOIN the tables goal and eteam in an SQL statement. Indicate the list of column names that may be used in the SELECT line:

3. Select the code which shows players, their team and the amount of goals they scored against Greece(GRE).

4. Select the result that would be obtained from this code:

5. Select the code which would show the player and their team for those who have scored against Poland(POL) in National Stadium, Warsaw.

6. Select the code which shows the player, their team and the time they scored, for players who have played in Stadion Miejski (Wroclaw) but not against Italy(ITA).

7. Select the result that would be obtained from this code:


          小小的进步✌✌✌

1. You want to find the stadium where player 'Dimitris Salpingidis' scored. Select the JOIN condition to use:

2. You JOIN the tables goal and eteam in an SQL statement. Indicate the list of column names that may be used in the SELECT line:

3. Select the code which shows players, their team and the amount of goals they scored against Greece(GRE).

---筛选所有与GRE比过赛的队伍,并且打败了GRE(teamid != 'GRE')

4. Select the result that would be obtained from this code:

---首先利用DISTINCT去重 排除一些有重复项的选项,然后加上有日期的项,即可选出答案

SELECT DISTINCT teamid, mdateFROM goal JOIN game on (matchid=id)WHERE mdate = '9 June 2012'

5. Select the code which would show the player and their team for those who have scored against Poland(POL) in National Stadium, Warsaw.

---筛选那些与POL比赛的队伍(team1 = 'POL' OR team2 = 'POL'),但是打败了POL的队伍teamid != 'POL'

6. Select the code which shows the player, their team and the time they scored, for players who have played in Stadion Miejski (Wroclaw) but not against Italy(ITA).

---与上题解题思路一致

7. Select the result that would be obtained from this code:

SELECT teamname, COUNT(*)FROM eteam JOIN goal ON teamid = idGROUP BY teamname
HAVING COUNT(*) < 3

SQLZOO——JOIN Quiz相关推荐

  1. SQLZOO——JOIN Quiz 2

    目录 1. Select the statement which lists the unfortunate directors of the movies which have caused fin ...

  2. SQLZOO JOIN答案

    链接:https://sqlzoo.net/wiki/The_JOIN_operation 1. SELECT matchid,player FROM goal WHERE teamid='GER' ...

  3. SQLzoo 习题记录07-More JOIN operations Quiz

    目录 More JOIN operations 1962 movies When was Citizen Kane released? Star Trek movies id for actor Gl ...

  4. sqlzoo--the join operation

    sqlzoo–select basics,select from world sqlzoo–select from nobel ,select in select sqlzoo–sum and cou ...

  5. SQL ZOO 练习 —— The JOIN operation

    The JOIN operation 学习原链接:The_JOIN_operation 1.The first example shows the goal scored by a player wi ...

  6. SQLZOO练习(全)

    文章目录 SELECT basics/zh SELECT names/zh SELECT Quiz/zh SELECT from WORLD Tutorial/zh BBC QUIZ/zh SELEC ...

  7. sql三表查询_SQL第五关:多表查询

    学习内容: 表的加法 表的联结 联结应用案例 case表达式 表的加法 学校数据库里的课程表(course),新建课程表(course 1),数据结果一样,新建数据内容不一样. 加法:把两个表的数据按 ...

  8. SQLzoo 习题记录06-The JOIN operation Quiz

    目录 The JOIN operation 1. 2. 3. 4. 5. 6. 7. More difficult questions 8. 9. 10.

  9. SQLZOO more JOIN

    链接:https://sqlzoo.net/wiki/More_JOIN_operations 1. SELECT id, title FROM movie WHERE yr=1962 SELECT ...

最新文章

  1. Mysql-study
  2. 生日快乐html_生日快乐,我的祖国
  3. 制作一本《First Love, Last Rites》之二
  4. [转载] jstl获取Parameter参数及switch使用
  5. 显示器分辨率一直跳_2020如何选择适合自己的显示器?小白选购电脑显示器必看!...
  6. Python之网络编程(基于tcp实现远程执行命令)
  7. FCKeditor 配置、扩展
  8. java内存管理的一些基础,内存溢出的解决方案
  9. JixiPix Rip Studio入门教程:如何修改图层和背景样式?
  10. Netty 整合 MessagePack 序列化框架 + LengthFieldBasedFrameDecoder 自定义解码器
  11. CCS 软件使用经验四则
  12. Eclipse使用教程(图文详解)+ 2020版eclipse配置tomcat + 配置JDK
  13. 2022年度嵌入式C语言面试题库(含答案)
  14. [信息安全] 05 X.509 公钥证书的格式标准
  15. 新媒体运营数据分析怎么做?
  16. 简单的node文件上传下载及中文乱码问题解决
  17. CTFshou wed命令执行29~50
  18. Vue如何使用video标签实现视频播放
  19. EE308 LAB2
  20. QT-iCCP警告去除libpng warning: iCCP: known incorrect sRGB profile

热门文章

  1. CentOS 升级内核
  2. Meta learning - metric-based approach 李宏毅机器学习笔记
  3. 商品上架难?那是你没用对方法
  4. C/C++注册表【3】子键枚举,备份,恢复
  5. C语言 用宏函数实现 swap() 交换函数
  6. ARM与x86 CPU架构对比
  7. Python必学知识:变量的声明
  8. MyCat 读写分离与分库分表
  9. java删除数组中重复元素
  10. 2012年度十大杰出IT博客[nice]