Good morning,I thought I had this query working but something is wrong yet and I cannot see what it is.
UPDATE Year3TempDistressFactors SET Year3TempDistressFactors.5Score = IIf(isnull(Yr1GeneralFundRevenue) Or isnull(Yr1GeneralFundExpenditure),Null,IIf(Yr1GeneralFundRevenue-(Yr1GeneralFundExpenditure/Yr1GeneralFundRevenue)<-0.01,1,0));
Its not returning the expected score correctly yet.
UPDATE Year3TempDistressFactors SET Year3TempDistressFactors.5Score = IIf(isnull(Yr1GeneralFundRevenue) Or isnull(Yr1GeneralFundExpenditure),Null,IIf(Yr1GeneralFundRevenue-(Yr1GeneralFundExpenditure/Yr1GeneralFundRevenue)<-0.01,1,0));
Its not returning the expected score correctly yet.