原始问题:
case when
(transaction_date between date_sub(now(), interval 7 day) and now())
then 'week'
else 'month' end as week_or_month
case when
(transaction_date between date_sub(now(), interval 7 day) and now())
then 'week'
else 'month' end as week_or_month
Prev:盐雾测试报告