Created
April 11, 2018 11:52
-
-
Save edersqo/58e08c02e0e4d62f69bb152c819947f8 to your computer and use it in GitHub Desktop.
Number of PriceLists duplicated by Store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Number of items duplicated by locale. | |
SELECT DISTINCT(PRICE_LIST), COUNT(*) | |
FROM | |
( | |
SELECT PRICE_LIST, SKU_ID, COUNT(*) | |
FROM WLM_PROD_CATA.DCS_PRICE | |
GROUP BY | |
PRICE_LIST, SKU_ID | |
HAVING | |
COUNT(*) > 1 | |
) DERIVED_TABLE | |
GROUP BY PRICE_LIST | |
ORDER BY COUNT(*) DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment