标签:
175 Combine Two Tables
题目:左连接Person表和Address表。
select FirstName,LastName,City,State from Person p left join Address a on p.PersonId=a.PersonId;
7个case耗时1001ms(注意耗时多次提交会不同,一般相差不大,偶尔也有相差大的) --2015/1/11
176 Second Highest Salary
题目:写一条sql语句查询Employee
表中第二高工资值。
select max(Salary ) from Employee where Salary not in(select max(Salary ) from Employee)
7个case耗时1001ms --2015/1/11
标签:
原文地址:http://www.cnblogs.com/zhutianpeng/p/4216508.html