What is many-to-one, and what are the differences between LEFT JOIN and INNER JOIN?
Use the provided Amex cardmember and transaction tables to demonstrate the relationship with a query that preserves cardmembers who have no completed transactions.
cardmember_id, cardmember_name, completed_transaction_count, and completed_amount.cardmember_id ascending, and treat missing completed transactions as zero.| Column | Type | Description |
|---|---|---|
| cardmember_idPK | INT | Unique cardmember identifier |
| cardmember_name | VARCHAR(100) | Cardmember name |
| membership_tier | VARCHAR(30) | Amex membership tier |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| cardmember_id | INT | Cardmember associated with the transaction |
| transaction_status | VARCHAR(20) | Transaction processing status |
| amount | DECIMAL(10,2) | Transaction amount in dollars |