mnd3
3/30/2007 8:56:00 PM
Hi, this should be an easy one for most you people but it is eluding
me. I am trying to do an update using a subselect and it errors out
saying it doesn't like my ORDER BY.
UPDATE(webapps.dbo.presidents_blog)
SET archive = 'yes', archive_date = '3/30/2007 3:03:12 PM'
WHERE topic_id NOT IN (SELECT Top 1 topic_id FROM
webapps.dbo.presidents_blog ORDER BY topic_id DESC)
AND archive IS NULL
Thanks for you help,
Mike