I get an error on the last "as" after the "end" in the statement. I am not sure what I did wrong. Can anyone help with this. My boss said I would not get it.
Thanks for the help ahead of time. arep
CASEWHEN ClaimsDetail.AllowedAmt = ClaimsDetail.NotCoveredAmt and ClaimsDetail.NotCoveredAmt != 0 then'Denied'
elseCASEWHEN ClaimsDetail.NetAmt != 0 or ClaimsDetail.CopayAmt != 0 or ClaimsDetail.DeductAmt != 0or(ClaimsDetail.OICPaidAmount != 0 and ClaimsDetail.AllowedAmt != ClaimsDetail.NotCoveredAmt)then'Paid'elseCASEWHEN ClaimsDetail.AllowedAmt = ClaimsDetail.NotCoveredAmt and ClaimsDetail.NotCoveredAmt != 0 then'Denied'
elseCASEWHEN ClaimsDetail.NetAmt != 0 or ClaimsDetail.CopayAmt != 0 or ClaimsDetail.DeductAmt != 0 or(ClaimsDetail.AllowedAmt != 0 and ClaimsDetail.AllowedAmt != ClaimsDetail.NotCoveredAmt)
or(ClaimsDetail.OICPaidAmount != 0 and ClaimsDetail.NotCoveredAmt = 0)then'Paid'endas ClaimStatus,