Skip to content
Advertisement

Group data by foreign key and date with total by date

I need help to select daily payments made and group by the organization and date. Group by date, then the total number of payments and the sum total amount of payments for each day Tables are as follows,

Expected Result

Advertisement

Answer

Use conditional aggregation:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement