Last active
April 11, 2018 12:51
-
-
Save edersqo/f232a1ec47e897ef61f54ca737e7ca46 to your computer and use it in GitHub Desktop.
Compare CATA, and CATB Versions
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
-- Compare VERSION column, CATA vs CATB | |
SELECT | |
COALESCE(CATA.PRICE_ID, CATB.PRICE_ID) AS PRICE_ID, | |
CASE | |
WHEN CATA.VERSION = CATB.VERSION THEN 'Equal' | |
WHEN CATA.VERSION <> CATB.VERSION THEN 'Changed' | |
END AS STATUS, | |
CATA.VERSION AS CATA_VERSION, | |
CATB.VERSION AS CATB_VERSION | |
FROM | |
WLM_PROD_CATA.DCS_PRICE CATA FULL JOIN WLM_PROD_CATB.DCS_PRICE CATB | |
ON CATA.PRICE_ID = CATB.PRICE_ID; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment