Skip to content

Commit

Permalink
Update 0175. Combine Two Tables.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
haibarawu authored Jun 2, 2020
1 parent cbca958 commit 430dcbb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Database/0175. Combine Two Tables.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/****************************************
/****************************************************************************************************
0175. Combine Two Tables
Difficulty: Easy
Expand Down Expand Up @@ -28,10 +28,15 @@ Write a SQL query for a report that provides the following information for each
regardless if there is an address for each of those people:
FirstName, LastName, City, State
****************************************/
编写一个 SQL 查询,满足条件:无论 person 是否有地址信息,都需要基于上述两表提供 person 的以下信息:
FirstName, LastName, City, State
****************************************************************************************************/


SELECT FirstName, LastName, City, State
FROM Person AS p
LEFT JOIN Address AS a
ON p.PersonId = a.PersonId


0 comments on commit 430dcbb

Please sign in to comment.