SQL: Combine Two Tables

Medium
SQL — Joins SQL LEFT JOIN
LEFT JOIN person and address tables.

Constraints

Write standard SQL (MySQL 8.0 compatible).

Examples

Example 1:
Input: person: 1 Ahmed address: 1 Dubai
Output:
Example 2:
Input: person: 1 Ahmed address: 1 Dubai
Output:

Hints

LEFT JOIN to include persons without address.
▲ Console

Install Talent Arabia

Get instant access to jobs and career tools on your device.