我需要一些帮助才能在一个查询中正确地完成它(如果可能的话)。(这是一个理论示例,我假设event_name中存在事件(比如注册/操作等)-user_id-event_name-user year and month registration time-number of users who returned to the second calendar month after registration
给定开始月份(比方说to_char(sysdate,'YYYYMM'))和结束月份(比方说to_char(add_months(sysdate, 6),'YYYYMM')),希望以相同的格式获取介于两者之间的月份列表(是的,我知道,效率非常低)SELECT id (select to_char(add_months(sysdate, 6),'YYYYMM') as tn_end,to_char(sysdate,'<em