ICode9

精准搜索请尝试: 精确搜索
  • SQLZOO练习5--join(表的连接)2022-05-18 18:04:37

    game表: idmdatestadiumteam1team2 1001 8 June 2012 National Stadium, Warsaw POL GRE 1002 8 June 2012 Stadion Miejski (Wroclaw) RUS CZE 1003 12 June 2012 Stadion Miejski (Wroclaw) GRE CZE 1004 12 June 2012 National Stadium, Warsaw POL RUS ……  

  • sqlzoo刷题——SUM and COUNT(聚合函数)2022-03-20 17:03:12

    前言 本文章记录sqlzoo刷题过程以及解题思路,每个小节不仅包含练习,还有选择题(quiz)部分的实现思路 网址:sqlzoo_SUM and COUNT 一、代码练习部分 展示世界的總人口。 查询结果列—— 条件—— 查询逻辑—— SELECT sum(population) FROM world 列出所有的洲份, 每個只有一

  • sqlzoo练习之JOIN,运行成功2021-09-23 16:01:53

    1.The first example shows the goal scored by a player with the last name ‘Bender’. The * says to list all the columns in the table - a shorter way of saying matchid, teamid, player, gtime SELECT matchid,player FROM goal WHERE teamid='GER' 2.S

  • SQLZoo刷题系列 42021-09-04 18:33:06

    SUM and COUNT 刷题网站SQLZoo,刷题语言MySQL 文章目录 SUM and COUNT知识点1. SUM2. Count3. MAX4. DISTINCT5. ORDER BY6. HAVING 题目1 Total world population2 List of continents3 GDP of Africa4 Count the big countries5 Baltic states population6 Counting the c

  • sqlzoo-day22021-09-04 18:32:35

    【目标:完成子查询的部分】,明天完成聚合函数和NULL 可以在where语句中加入子查询,作为一个结果;也可以在select语句中加入子查询(子查询结果唯一),直接作为展示项;在子查询中,ALL关键字可以将查询得到的数据变成一个子集,相当于SELECT MAX(XX)...;ANY关键字类似,其相当于ANY --example 4

  • sqlzoo答案--join2020-06-17 17:55:50

    1. 第一個例子列出球員姓氏為'Bender'的入球數據。 * 表示列出表格的全部欄位,簡化了寫matchid, teamid, player, gtime語句。 修改此SQL以列出 賽事編號matchid 和球員名 player ,該球員代表德國隊Germany入球的。要找出德國隊球員,要檢查: teamid = 'GER' SELECT matchid ,p

  • sqlzoo答案--sum and count2019-12-04 18:02:36

    1.展示世界的總人口。 SELECT sum(population)FROM world 2.列出所有的洲份, 每個只有一次。 select distinct continentfrom world 3.找出非洲(Africa)的GDP總和。 select sum(gdp)from worldwhere continent='africa' 4.有多少個國家具有至少百萬(1000000)的面積。 select count

  • SQLZOO答案-Music Tutorial2019-07-09 15:35:22

      1.找出 收錄 歌曲song 'Alison' 碟名title 和 歌手 artist。 SELECT title, artist FROM album JOIN track ON (album.asin=track.album) WHERE song = 'Alison'   2.哪一歌手artist 錄了歌曲 song 'Exodus'? SELECT artist FROM album JOIN tra

  • sqlzoo:22019-03-19 10:52:25

    顯示具有至少2億人口的國家名稱。 2億是200000000,有八個零。 SELECT name FROM worldWHERE population>=200000000 找出有至少200百萬(2億)人口的國家名稱,及人均國內生產總值。 select name ,GDP/populationfrom worldwhere population >=200000000 顯示'South America'南美洲

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有