How would you approach a round that mixes SQL questions, programming, and a behavioral interview?
For the SQL portion, write a PostgreSQL query that summarizes completed transaction activity for every user.
user_id, email, completed_transaction_count, completed_transaction_total, and activity_statuscompleted; treat missing totals as zerouser_id ascending| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| VARCHAR(255) | User email address |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| user_id | INT | User associated with the transaction |
| status | VARCHAR(30) | Transaction processing status |
| amount | DECIMAL(12,2) | Transaction amount |