[leetcode]175. Combine Two Tables
Analysis
心情复杂~—— [ummmmmm~]
Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people:
FirstName, LastName, City, State
SQL语句的使用,看一下left join。
Implement
# Write your MySQL query statement below
select FirstName, LastName, City, State
from Person left join Address
on Person.PersonId = Address.PersonId;