Created
November 12, 2010 14:06
-
-
Save pmdgithub/674121 to your computer and use it in GitHub Desktop.
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
UPDATE zpmdl_pclaim zcp | |
SET mtm_drug_id = ydrg.id | |
FROM | |
(SELECT z.ndc, MAX(z.id) AS id | |
FROM drugs z | |
GROUP BY z.ndc) ydrg | |
WHERE ydrg.ndc = zcp.product_service_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment