Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b27390a

Browse files
committed
fix 175
1 parent 6f8600a commit b27390a

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

175-combine_two_tables.sql

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
175. Combine Two Tables
1+
-- 175. Combine Two Tables
2+
3+
-- Table: Person
4+
5+
-- +-------------+---------+
6+
-- | Column Name | Type |
7+
-- +-------------+---------+
8+
-- | PersonId | int |
9+
-- | FirstName | varchar |
10+
-- | LastName | varchar |
11+
-- +-------------+---------+
12+
13+
-- PersonId is the primary key column for this table.
14+
15+
-- Table: Address
16+
17+
-- +-------------+---------+
18+
-- | Column Name | Type |
19+
-- +-------------+---------+
20+
-- | AddressId | int |
21+
-- | PersonId | int |
22+
-- | City | varchar |
23+
-- | State | varchar |
24+
-- +-------------+---------+
25+
26+
-- AddressId is the primary key column for this table.
27+
28+
29+
-- Write a SQL query for a report that provides the following information for each person
30+
-- in the Person table, regardless if there is an address for each of those people:
31+
32+
-- FirstName, LastName, City, State
33+
34+
235

0 commit comments

Comments
 (0)