Explain your approach to solving a problem using SQL window functions.
Illustrate the approach using the supplied transactions table. Return posted transactions with their rank by amount within each account, handling tied amounts and null amounts explicitly.
transaction_id, account_id, transaction_date, amount, and amount_rank.account_id, amount_rank, then transaction_id.| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| account_id | VARCHAR(20) | Account associated with the transaction |
| transaction_date | DATE | Date of the transaction |
| amount | DECIMAL(10,2) | Transaction amount |
| status | VARCHAR(20) | Processing status of the transaction |