LeetCode刷题——数据库篇

1

# Write your MySQL query statement below
select Person.FirstName,Person.LastName,Address.City,Address.State 
from Person left join Address on Person.PersonId=Address.PersonId

 

2

 

# Write your MySQL query statement below
select max(Salary) as SecondHighestSalary from Employee where Salary<(select max(Salary) from Employee)

 

 

3

 

 

4

5

6

7

8

9

posted @ 2020-12-23 23:03  谢义xieyi521149  阅读(95)  评论(0)    收藏  举报