【发布时间】:2019-04-27 01:11:54
【问题描述】:
我有:
select
month,
year,
-- package 5 counts by sliding screening price
case
when total_count_package_5 <= 75 then SUM(total_count_package_5) end as total_count_package_5_15,
case
when total_count_package_5 >= 76 and <= 150 then SUM(total_count_package_5) end as total_count_package_5_13,
case
when total_count_package_5 >= 151 and <= 600 then SUM(total_count_package_5) end as total_count_package_5_12,
case
when total_count_package_5 >= 601 and <= 800 then SUM(total_count_package_5) end as total_count_package_5_10,
case
when total_count_package_5 >= 801 then SUM(total_count_package_5) end as total_count_package_5_8,
from screening_packages_5_6_count_2018
group by year, month, total_count_package_5, total_count_package_6
order by month, year desc;
但我收到错误
谢谢,
【问题讨论】:
标签: amazon-redshift