Created
September 19, 2013 13:10
-
-
Save npero/6623260 to your computer and use it in GitHub Desktop.
DB script to add missing UTG_THRESHOLDUNIT codedetail to Municipality. (cfr Henk and Rita request from Nova signet)
This file contains hidden or 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
| INSERT into DICCODEDETAIL (IDDICCODE,IDSYSNOVAINSTANCE,IDDICMUNICIPALITY,CODEDETAIL,DESCRIPTION,LANGUAGE,RANKING,LASTUPDATE) | |
| select * from (select IDDICCODE,2,IDDICMUNICIPALITY,CODEDETAIL,DESCRIPTION,LANGUAGE,RANKING, count(*) over ( partition by codedetail, language) total from diccodedetail a where iddiccode = 'UTG_THRESHOLDUNIT' ) where total = 1 | |
| ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment