LeetCode/릿코드-Combine Two Tables-MySQL

cosmos·2021년 9월 16일
0
post-thumbnail
post-custom-banner

문제

풀이

  • 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

코드

# leetcode, combine two tables, mysql
SELECT P.FirstName, P.LastName, A.City, A.State
FROM Person as P
LEFT OUTER JOIN Address as A ON P.PersonId = A.PersonId

결과


출처 && 깃허브

leetcode
github

post-custom-banner

0개의 댓글