开发者

SQL query (in ZOHO reports) to join two tables by subtotas :-O

开发者 https://www.devze.com 2023-02-04 17:46 出处:网络
if you are out there, please help me: I have 2 different tables,开发者_运维技巧 with different columns and no primary key:

if you are out there, please help me:

I have 2 different tables,开发者_运维技巧 with different columns and no primary key:

1 - daily actual sales data 2 - monthly budget sales data

I need:

- one consolidated table with monthly actual sales (counted) and montly budget sales, to compare monthly sales vs budget.

Is it possible?


Of course.

You can aggregate the numbers for every month from the actual sales data table using sum() and group by and can join into this the budget table via the month column.

0

精彩评论

暂无评论...
验证码 换一张
取 消