What does a SQL JOIN do?
Write a PostgreSQL query that demonstrates this by returning customers who have a matching account record. Include only matched customer-account pairs.
customer_name, account_typecustomer_name, then account_type| Column | Type | Description |
|---|---|---|
| customer_idPK | INT | Unique customer identifier |
| customer_name | VARCHAR(100) | Customer's full name |
| Column | Type | Description |
|---|---|---|
| account_idPK | INT | Unique account identifier |
| customer_id | INT | Customer associated with the account |
| account_type | VARCHAR(50) | Type of bank account |