hey guys,
having problems trying to alias a table variable in an update statement
syntax i have so far is....
any ideas?
cheers.
having problems trying to alias a table variable in an update statement
syntax i have so far is....
Code:
update @all a
set a.jobtitle = c.job_title from contact
inner join contact c on c.individual_ref = a.ref and c.main_organisation = 'Y'
where a.addresstype = 'Business'
any ideas?
cheers.