select to_char(t.entry_time,'yyyy-mm-dd hh24') "时间",to_char(t.entry_time,'day','NLS_DATE_LANGUAGE=''SIMPLIFIED CHINESE''') "星期" ,count(1) "数量" from atfa.t_ticket@maspos_201.source t
where to_char(t.entry_time,'yyyy-mm')='2009-05'
group by rollup(to_char(t.entry_time,'yyyy-mm-dd hh24')) ,to_char(t.entry_time,'day','NLS_DATE_LANGUAGE=''SIMPLIFIED CHINESE''')order by count(1) des