Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Made 2 changes:
In the question
Who were the top 3 sales representatives by total revenue in the past 3 months, inclusive of today's date? Return their first name, last name, total number of sales and total revenue.
, revenue could have conceivably referred to both the sum ofsale_price
in thesales
table, and the sum ofpayment_amount
in thepayments_received
table. Made this more explicit in the questionIn the question
Return the distinct list of merchant IDs that have received money from a transaction. Include all transaction types in the results you return.
- the person reading thing could conceivably think that they must include the transaction_type column in the results as well. So made the question clearer.