Last updated
Was this helpful?
Last updated
Was this helpful?
https://leetcode.com/problems/monthly-transactions-i
Table: Transactions
Write an SQL query to find for each month and country, the number of transactions and their total amount, the number of approved transactions and their total amount.
The query result format is in the following example: