문제

The question is:- For the Star Model write an OLAP query that retrieves the quantity, the total income and discount with respect to each city, type of furniture and month.

This is what I have done and want to know is this correct

SELECT Quantity, Income, Discount, City, Type, Month

FROM Sales, Customer, Furniture, Time

WHERE Count(quantity,income,discount)

GROUP BY City, Type, Month; 
도움이 되었습니까?

해결책

You are misisng to do the JOIN of the tables.

You probably want to JOIN your tables.

Sales, Customer, Furniture and Time

Also try to remove the AND from your queries like

SELECT Quantity, Income, Discount, City, Type , Month
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top