A
anniecallaway
Could someone please take a look and what I doing and see if you know
what is being done wrong?
a) This SQL View Query gives the Top 50 SKU numbers and shrink $
amounts for store 121:
SELECT TOP 50 PRTHD_STRSK_INV_SSTATS.STR_NBR,
PRTHD_STRSK_INV_SSTATS.SKU_NBR,
PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT
FROM PRTHD_STRSK_INV_SSTATS
WHERE (((PRTHD_STRSK_INV_SSTATS.FSCL_YR)=2008) AND
((PRTHD_STRSK_INV_SSTATS.STR_NBR)=121))
ORDER BY PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT,
PRTHD_STRSK_INV_SSTATS.STR_NBR;
b) However this query gives me the Top 50 SKU numbers and shrink $
amounts for store 121 and 105 combined:
SELECT TOP 50 PRTHD_STRSK_INV_SSTATS.STR_NBR,
PRTHD_STRSK_INV_SSTATS.SKU_NBR,
PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT
FROM PRTHD_STRSK_INV_SSTATS
WHERE (((PRTHD_STRSK_INV_SSTATS.FSCL_YR)=2008) AND
((PRTHD_STRSK_INV_SSTATS.STR_NBR)=121)) OR
(((PRTHD_STRSK_INV_SSTATS.FSCL_YR)=2008) AND
((PRTHD_STRSK_INV_SSTATS.STR_NBR)=105))
ORDER BY PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT,
PRTHD_STRSK_INV_SSTATS.STR_NBR;
I am looking for the top 50 SKU numbers and skrink $ amounts for store
121 & the top 50 SKU numbers and shrink $ amounts for store 105
(eventually looking to get the top 50 for all stores). However, for
this example I would get back 100 SKU numbers and shrink $ amounts
total.
Ideally I would like to see the Top 50 SKUs for Store 105 (Row 1-50)
and then see the Top 50 SKUs for Store 121 (Row 51-100)
Thanks,
Annie
what is being done wrong?
a) This SQL View Query gives the Top 50 SKU numbers and shrink $
amounts for store 121:
SELECT TOP 50 PRTHD_STRSK_INV_SSTATS.STR_NBR,
PRTHD_STRSK_INV_SSTATS.SKU_NBR,
PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT
FROM PRTHD_STRSK_INV_SSTATS
WHERE (((PRTHD_STRSK_INV_SSTATS.FSCL_YR)=2008) AND
((PRTHD_STRSK_INV_SSTATS.STR_NBR)=121))
ORDER BY PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT,
PRTHD_STRSK_INV_SSTATS.STR_NBR;
b) However this query gives me the Top 50 SKU numbers and shrink $
amounts for store 121 and 105 combined:
SELECT TOP 50 PRTHD_STRSK_INV_SSTATS.STR_NBR,
PRTHD_STRSK_INV_SSTATS.SKU_NBR,
PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT
FROM PRTHD_STRSK_INV_SSTATS
WHERE (((PRTHD_STRSK_INV_SSTATS.FSCL_YR)=2008) AND
((PRTHD_STRSK_INV_SSTATS.STR_NBR)=121)) OR
(((PRTHD_STRSK_INV_SSTATS.FSCL_YR)=2008) AND
((PRTHD_STRSK_INV_SSTATS.STR_NBR)=105))
ORDER BY PRTHD_STRSK_INV_SSTATS.OVR_SHRT_CE_AMT,
PRTHD_STRSK_INV_SSTATS.STR_NBR;
I am looking for the top 50 SKU numbers and skrink $ amounts for store
121 & the top 50 SKU numbers and shrink $ amounts for store 105
(eventually looking to get the top 50 for all stores). However, for
this example I would get back 100 SKU numbers and shrink $ amounts
total.
Ideally I would like to see the Top 50 SKUs for Store 105 (Row 1-50)
and then see the Top 50 SKUs for Store 121 (Row 51-100)
Thanks,
Annie