Skip to content

Instantly share code, notes, and snippets.

@edersqo
Last active April 3, 2018 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edersqo/aa6e24ee6ed4c3e761d8aee956d6e24e to your computer and use it in GitHub Desktop.
Save edersqo/aa6e24ee6ed4c3e761d8aee956d6e24e to your computer and use it in GitHub Desktop.
Count the number of duplicated items in Oracle Commerce (DCS_PRICE; Switching Schemas)
SELECT 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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment