I have a select statement with a count that works just fine.
But when I add the update statement I get en error stating that my count field is an invalid identifier
–Update the Follow Up Cnt field
Update schuck1.seibel_contacts@cepd.devl.corp.cname.com
Set follow_up_cnt = acnt where acnt in
(select mdm2.mdm_cust_id, s_cont_id, count(ACON.RELATION_TYPE_CD) acnt
from sds_ifo_s_contact scon,
sds_ifo_s_asset_con acon,
( Select *
from sds_ifo_s_asset
where type_cd = ‘Device Set’
and status_cd = ‘Active’) asset,
schuck1.seibel_contacts@cepd.devl.corp.cname.com MDM2
where scon.row_id = mdm2.s_cont_id
and scon.row_id = acon.contact_id
and acon.asset_id = asset.row_id
Group by mdm2.mdm_cust_id, s_cont_id
)
;
Commit;
Kimberly Schuck
Prin IT Bus Systems Analyst
Global Master Data and Integration
[CONFIDENTIALITY AND PRIVACY NOTICE]
Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records.
To view this notice in other languages you can either select the following link or manually copy and paste the link into the address bar of a web browser: http://emaildisclaimer.medtronic.com