美文网首页
数据库习题

数据库习题

作者: 陈小飘 | 来源:发表于2017-04-20 21:27 被阅读0次
Paste_Image.png

答案:
SELECT Person.FirstName, Person.LastName, Address.City, Address.State from Person LEFT JOIN Address on Person.PersonId = Address.PersonId;

Paste_Image.png

答案:SELECT distinct Salary as SecondHighestSalary FROM ((select * from Employee) union (select null as Id, null as Salary from dual) ) c order by Salary desc limit 1,1;

相关文章

网友评论

      本文标题:数据库习题

      本文链接:https://www.haomeiwen.com/subject/vmqrzttx.html