Hello everyone,
Please help me revise this query to make it work. I don't know much about update query so I will need some help with it. Thanks,
update encounter
set mergedpayment = totalactualcash payments
from encounter E, paymentITEM P, encounterfinanc ialrecord F
where (E.encounterid = P.FINANCIALRECN UM) AND (E.encounterid = F.FINANCIALRECN UM) and (transtypecode = 'C') and (F.INSPLANCODE not in ('UNINSURED', 'SP', 'Selfpay'));
Please help me revise this query to make it work. I don't know much about update query so I will need some help with it. Thanks,
update encounter
set mergedpayment = totalactualcash payments
from encounter E, paymentITEM P, encounterfinanc ialrecord F
where (E.encounterid = P.FINANCIALRECN UM) AND (E.encounterid = F.FINANCIALRECN UM) and (transtypecode = 'C') and (F.INSPLANCODE not in ('UNINSURED', 'SP', 'Selfpay'));
Comment