- 博客(4)
- 收藏
- 关注
原创 SQL Zoo:Using Null+NSS Tutorial
teacher id dept name phone mobile 101 1 Shrivell 2753 07986 555 1234 102 1 Throd 2754 07122 555 1920 103 1 Splint 2293 104 Spiregrain 3287 105 2 Cutflower 3212 07996 555 6574 106 ...
2019-08-12 17:12:24
263
原创 SQL Zoo:The JOIN operation
PART-1:The JOIN operation 第一個例子列出球員姓氏為’Bender’的入球數據。修改此SQL以列出 賽事編號matchid 和球員名 player ,該球員代表德國隊Germany入球的。要找出德國隊球員,要檢查: teamid = ‘GER’ SELECT matchid , player FROM goal WHERE teamid=‘GER’ 只顯示賽事1...
2019-08-09 18:29:35
336
原创 SQL Zoo:SUM and COUNT
PART-1:World表 展示世界的總人口。 SELECT sum(population) FROM world 列出所有的洲份, 每個只有一次。 select distinct continent from world 找出非洲(Africa)的GDP總和。 select sum(gdp) from world where continent=‘Africa’ 有多少...
2019-08-09 14:45:43
187
原创 SQL Zoo:SELECT within SELECT
SQL Zoo:SELECT within SELECT PART-1 列出每個國家的名字 name,當中人口 population 是高於俄羅斯’Russia’的人口。 SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name=‘Russia’) 列出歐州每國家的人均GDP...
2019-08-09 14:03:11
193
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人