SQL
lialiazh
这个作者很懒,什么都没留下…
展开
-
SQL Zoo:SELECT within SELECT
SQL Zoo:SELECT within SELECTPART-1列出每個國家的名字 name,當中人口 population 是高於俄羅斯’Russia’的人口。SELECT name FROM worldWHERE population >(SELECT population FROM worldWHERE name=‘Russia’)列出歐州每國家的人均GDP...原创 2019-08-09 14:03:11 · 151 阅读 · 0 评论 -
SQL Zoo:SUM and COUNT
PART-1:World表展示世界的總人口。SELECT sum(population)FROM world列出所有的洲份, 每個只有一次。select distinct continentfrom world找出非洲(Africa)的GDP總和。select sum(gdp) from worldwhere continent=‘Africa’有多少...原创 2019-08-09 14:45:43 · 125 阅读 · 0 评论 -
SQL Zoo:The JOIN operation
PART-1:The JOIN operation第一個例子列出球員姓氏為’Bender’的入球數據。修改此SQL以列出 賽事編號matchid 和球員名 player ,該球員代表德國隊Germany入球的。要找出德國隊球員,要檢查: teamid = ‘GER’SELECT matchid , player FROM goalWHERE teamid=‘GER’只顯示賽事1...原创 2019-08-09 18:29:35 · 271 阅读 · 0 评论 -
SQL Zoo:Using Null+NSS Tutorial
teacheriddeptnamephonemobile1011Shrivell275307986 555 12341021Throd275407122 555 19201031Splint2293104Spiregrain32871052Cutflower321207996 555 6574106...原创 2019-08-12 17:12:24 · 194 阅读 · 0 评论