Subject | SQL help needed |
---|---|
Author | tickerboo2002 |
Post date | 2006-09-07T14:29:27Z |
Hello
Inside a Trigger, I'd like to perform an update if a select returns no
rows. Something like the following:
UPDATE foo f
SET f.Finished=1
where f.ID=100 and count( select bar_Id from bar where blah )=0
What's the usual way of doing this?
Thanks
Inside a Trigger, I'd like to perform an update if a select returns no
rows. Something like the following:
UPDATE foo f
SET f.Finished=1
where f.ID=100 and count( select bar_Id from bar where blah )=0
What's the usual way of doing this?
Thanks