The following SQL query returns three records. I want to update the timerecstatus field of the records that are returned by this query to 'C'. How can I modify this SQL query to do this in one step?
select projectcustid
from ((timerec
left join task on taskid=timerectaskid)
left join story on task.storyid=story.storyid)
left join project on project.projectid=story.projectid
where timerecstatus='n' and projectcustid='wgs'
select projectcustid
from ((timerec
left join task on taskid=timerectaskid)
left join story on task.storyid=story.storyid)
left join project on project.projectid=story.projectid
where timerecstatus='n' and projectcustid='wgs'