Write a SQL query to find the second-highest transaction amount within each regional sales division for Lennar.
Use the provided division and transaction data. Treat the second-highest amount as the second distinct amount, and exclude transactions with a NULL amount.
regional_division, second_highest_amount.regional_division alphabetically. If multiple transactions share the qualifying amount, return one row for the division.| Column | Type | Description |
|---|---|---|
| division_idPK | INT | Unique identifier for the regional sales division |
| division_name | VARCHAR(100) | Name of the regional sales division |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique identifier for the transaction |
| division_id | INT | Regional division associated with the transaction |
| transaction_amount | DECIMAL(12,2) | Amount recorded for the transaction |
| transaction_date | DATE | Date when the transaction occurred |