Write a SQL query to find the longest gap between transactions for each customer. Use the transactions table and compare transaction dates for the same customer. Exclude customers with fewer than two valid transaction dates.
customer_id and longest_gap_days.customer_id ascending.| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| customer_id | VARCHAR(20) | Identifier of the customer making the transaction |
| transaction_date | DATE | Calendar date of the transaction |