1. Select the code which uses an outer join correctly SELECT teacher.name, dept.name FROM teacher LEFT OUTER JOIN dept ON (teacher.dept = dept.id) 2. Select the
1. You want to find the stadium where player ‘Dimitris Salpingidis’ scored. Select the JOIN condition to use: game JOIN goal ON (id=matchid) 2. You JOIN the tables goal and eteam in an SQL state
1. List each country name where the population is larger than that of 'Russia’ SELECT name FROM worldWHERE population >(SELECT population FROM worldWHERE name='Russia'); 2. Show the countries in E
1. Modify it to show the population of Germany SELECT population FROM worldWHERE name = 'Germany'; 2. Show the name and the population for ‘Sweden’, ‘Norway’ and 'Denmark’ SELECT name, population
name continent area population gdp Afghanistan Asia 652230 25500100 20343000000 Albania Europe 28748 2831741 12960000000 … name:國家名稱 continent:洲份 area:面積 population:人口 gdp:國內生產總值 Country Profile 在這教程
1.紅十字國際委員會 (International Committee of the Red Cross) 曾多次獲得和平獎。 試找出與紅十字國際委員會同年得獎的文學獎(Literature)得獎者和年份。 SELECT * FROM nobel where winner = 'International Committee of the Red Cross' 2.日本物理學家益川敏英 (T
上次那篇没有写完,此版是补充版 6.哪些國家的GDP比Europe歐洲的全部國家都要高呢? [只需列出 name 。] (有些國家的記錄中,GDP是NULL,沒有填入資料的。) SELECT name FROM worldWHERE gdp >ALL (SELECT gdp FROM world WHERE continent = 'Europe' AND gdp > 0); 注
1.閱讀此表的注意事項 觀察運行一個簡單的SQL命令的結果。 SELECT name, continent, population FROM world 2.如何使用WHERE來篩選記錄。 顯示具有至少2億人口的國家名稱。 2億是200000000,有八個零。 SELECT name FROM worldWHERE population >=200000000 3.找出
对应链接:https://sqlzoo.net/wiki/SUM_and_COUNT 1.Show the total population of the world. (译:查询世界总人口数) SELECT SUM(population)FROM world 2.List all the continents - just once each. (译:查询所有的大洲名称-只查询一次)
本章节主要训练SELECT语句的嵌套使用。 题目3:Neighbours of Argentina and Australia List the name and continent of countries in the continents containing either Argentina or Australia. Order by name of the country.
1.一個成員被工黨逐出黨,現沒屬任何黨。找出他。 select name from msp where party is null; 2.列出每個黨及其領導人。 select name,Leader from party group by name 3.列出每個黨及其領導人,這些黨其實是沒有領導人的。 SELECT NAME,leaderFROM partyWHERE LEA