Write a SQL query using window functions to compute each user's month-over-month change in transaction volume.
Use the users and transactions tables. Treat transaction volume as the number of transactions in each recorded calendar month, and compare each month with the user's previous recorded month.
user_id, user_name, month_start, transaction_volume, previous_month_volume, and month_over_month_change.NULL.user_id, then month_start.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| user_name | VARCHAR(100) | User display name |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| user_id | INT | User associated with the transaction |
| transaction_date | DATE | Date on which the transaction occurred |