I have a statement that would be valid in Oracle, but SQL Server doesn't like this form. I looked at the FROM clause and still can't figure out how to implement the statement... HELP!!
update STAGING_DSMGENE RAL_REPORT D
set [Agency Name] =
(select substring([Agency Name],1,6) +' - ' + A.Name + ' - ' + C.FullName
from STAGING_DSMGENE RAL_REPORT DSM,
Contact C,
Account A
where C.tsi_contactnu mber = substring(DSM.[Agency Name],1,6)
and A.AccountId = C.AccountId
and DSM.[Proposal ID] = D.[Proposal ID])
where [Agency Name] like '%odified%'
Thanks for your help.
Pascal
update STAGING_DSMGENE RAL_REPORT D
set [Agency Name] =
(select substring([Agency Name],1,6) +' - ' + A.Name + ' - ' + C.FullName
from STAGING_DSMGENE RAL_REPORT DSM,
Contact C,
Account A
where C.tsi_contactnu mber = substring(DSM.[Agency Name],1,6)
and A.AccountId = C.AccountId
and DSM.[Proposal ID] = D.[Proposal ID])
where [Agency Name] like '%odified%'
Thanks for your help.
Pascal
Comment