Home Combine Two Tables
Post
Cancel

Combine Two Tables

Leetcode Problem

Combine Two Tables

주어진 두 table을 mysql로 합치는 문제입니다.

1
2
3
SELECT FirstName, LastName, City, State
FROM Person LEFT JOIN Address 
ON Address.PersonId = Person.PersonId

두 table의 공통 column인 personId를 기준으로 JOIN을 사용했습니다.





참고

This post is licensed under CC BY 4.0 by the author.