2018年4月30日 星期一

分組次數分配的SQL



select max(建議金額), min(建議金額)
from suggesions

select round(建議金額/10000-0.5)*10000, count(*)
from suggesions
where 建議金額 != 0
group by round(建議金額/10000-0.5)*10000

沒有留言:

張貼留言