开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜