问题是: - 对于Star Model,写一个OLAP查询来检索数量,总收入和折扣
关于每个city
,type of furniture
和month
。
这就是我所做的,并且想知道这是正确的
SELECT Quantity, Income, Discount, City, Type, Month
FROM Sales, Customer, Furniture, Time
WHERE Count(quantity,income,discount)
GROUP BY City, Type, Month;
答案 0 :(得分:0)
你缺少表格的JOIN。
你可能想加入你的桌子。
Sales, Customer, Furniture and Time
还尝试从
等查询中删除ANDSELECT Quantity, Income, Discount, City, Type , Month