Home > Software engineering >  Sum values from different tables and group by month and customer
Sum values from different tables and group by month and customer

Time:10-22

I have 5 tables related to sales. Three of them are like this: query result

The concepts used are linked below.

Window Functions: https://dev.mysql.com/doc/refman/8.0/en/window-functions.html

Common Table Expressions (CTE): https://www.mysqltutorial.org/mysql-cte/

  • Related