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을 사용했습니다.
참고
주어진 두 table을 mysql로 합치는 문제입니다.
1
2
3
SELECT FirstName, LastName, City, State
FROM Person LEFT JOIN Address
ON Address.PersonId = Person.PersonId
두 table의 공통 column인 personId를 기준으로 JOIN을 사용했습니다.
참고
A new version of content is available.