Created
September 19, 2014 20:33
-
-
Save swaters86/d1d3e34bf763699075ab to your computer and use it in GitHub Desktop.
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
| select count (*) | |
| --update aa | |
| --set aa.Sist_endret = cast(aa.dato as datetime), | |
| aa.Opprettet = cast(aa.dato as datetime) | |
| from web.dbo.Artikkler_hode aa | |
| left join web.dbo.Artikkler_status (nolock) bb | |
| on (bb.Avis =aa.Avis and bb.Dato=aa.Dato and bb.Kategori=aa.Kategori and bb.Lopenr=aa.Lopenr) | |
| where bb.Avis='DA' and bb.CreatedBy='mfxfeeder' and convert(varchar(8), aa.Opprettet, 112) > aa.dato | |
| and aa.Dato <> '99999999' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment