OK, i have 1 table which contains salesfacts. There are 2 things I want:
1. Show the revenue and store number.
2. Show only the store with the lowest revenue.
the first one is simple:
This shows the revenue per store, but now i want only the store with the lowest revenue. So it should be a min operator over the sum, how do i make that query???
its driving me nuts
iCe
1. Show the revenue and store number.
2. Show only the store with the lowest revenue.
the first one is simple:
- Select store_key, sum(dollar_sales)
- from SALES_FACT
- group by store_key;
This shows the revenue per store, but now i want only the store with the lowest revenue. So it should be a min operator over the sum, how do i make that query???
its driving me nuts
iCe