A financial institution needs to summarize transaction data by month to generate monthly reports. How would you implement this aggregation in a database?

  • AVG() function
  • GROUP BY with MONTH() function
  • JOIN with a calendar table
  • SUM() function
To summarize transaction data by month, you would use GROUP BY along with the MONTH() function to extract the month from the date column. This allows you to group transactions by month and generate the required monthly reports.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *