I have the following table Fact_Sales :
ProductSK DateSK SalesAmount SalesNumber
1 2019 300 150
2 2019 500 190
.....
and the following table DimProduct :
ProductSK CategoryLabel
1 ABC
2 ABC
....
I want to calculate the sales by category label but when joining like below the result of the query is generating a cartesian product :
SELECT CategoryLabel, SUM(SalesAmount)
FROM Fact_Sales, DimProduct