융무의 기술블로그
article thumbnail

1. https://leetcode.com/problems/combine-two-tables/

 

Combine Two Tables - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

2. Problem                                                                                                                      

 

3. Analysis                                                                                                                     

1.  provides the following information for each person이므로 각각의 정보에 대해 SELECT 하고 LEFT JOIN을 한다.

4. Solution                                                                                                                    

<sql />
SELECT P.FirstName, P.LastName, A.City, A.State FROM Person P LEFT JOIN Address A ON A.PersonId = P.PersonId

 

profile

융무의 기술블로그

@융무

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!