此代码的输出将是name和choices,我希望将Not effective、Neither effective nor Effective、Effective替换为"A“、"B”和"C“。我不知道我的代码有什么问题或遗漏了什么,似乎它只适用于以下情况:问题1选择Not effective,问题2选择Neither effective nor Effective,问题3选择Effectiveeffective</e
Case 1- When IM.Code=IME.Code and IM.Effective_st_dt=IME.effective_st_dt and IM.Effective_end_dt =IME.Effective-end_date=IME.effective_st_dt and IM.Effective_end_dt =IME.Effective-end_date
)从IM中选择最近的Effective_st_dt记录,并使用(IME.<em