首先查看world表的字段: name continent area population gdp capital tld flag SELECT * FROM world: 2.显示人口至少为2亿的国家/地区的名称.2亿=200million SELECT name FROM world ; 3.给出人口至少2亿的国家的名称和人均国内生产总值. ; 4.显示continent ='South America'的国家的名称和人口. 将人口除以100万,以获得数百万人口,也就是population…
[1]查找最晚入职员工的所有信息 CREATE TABLE `employees` ( `emp_no` ) NOT NULL, `birth_date` date NOT NULL, `first_name` ) NOT NULL, `last_name` ) NOT NULL, `gender` ) NOT NULL, `hire_date` date NOT NULL, PRIMARY KEY (`emp_no`)); 题解: ; [2]查找入职员工时间排名倒数第三的员工所有信息 (表同问…
https://blog.csdn.net/mrbcy/article/details/68965271 经典例题 19.查询选修“3-105”课程的成绩高于“109”号同学成绩的所有同学的记录. SELECT s1.Sno,s1.Degree FROM Scores AS s1 INNER JOIN Scores AS s2 ON(s1.Cno=s2.Cno AND s1.Degree>s2.Degree) WHERE s1.Cno='3-105' AND s2.Sno='109' ORDER…
SELECT from Nobel Tutorial 1.Change the query shown so that it displays Nobel prizes for 1950. SELECT yr, subject, winner FROM nobel : 2.Show who won the 1962 prize for Literature. and subject='literature'; 3.Show the year and subject that won 'Alber…