Combine Two Tables[leetcode]

# Write your MySQL query statement below
#select a.FirstName , a.LastName , b.City , b.State from Person as a , Address as b where a.PersonId = b.AddressId ;
select a.FirstName , a.LastName , b.City , b.State from Person as a left join Address as b on a.PersonId = b.PersonId ;


https://leetcode.com/discuss/33259/difference-between-inner-join-and-left-join
sql

相關文章
相關標籤/搜索