此代码的输出将是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
我的表包含以下列:effective_to列可以是NULL。我需要在effective_to列中有NULL的行(事件持续),在effective_to order by DESC列中有时间戳记录的行。我的问题是:
->order($db->quoteName('effective_to') . ' IS NOT NULL ', $db->q