Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. UPDATE [FORDCPOLINKEDSERVER].[FORDCPO].[DBO].ANNOUNCEMENTS
  2. SET
  3. ISREAD = 1,
  4. READDATETIME = GETDATE()
  5. WHERE
  6. ANNOUNCEMENTID IN
  7. (
  8. SELECT
  9. ANNOUNCEMENTID
  10. FROM
  11. [FORDCPOLINKEDSERVER].[FORDCPO].[DBO].ANNOUNCEMENTS A
  12. JOIN
  13. [FORDCPOLINKEDSERVER].[FORDCPO].[DBO].INSPECTIONS i
  14. ON A.INSPECTIONID = I.INSPECTIONID
  15. WHERE
  16. ISREAD = 0
  17. AND i.CERTIFICATIONSTATUS > 4
  18. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement