select count(*) ,type from device
where time between  to_date('yyyymmdd' 'yyyymmdd') and to_date('yyyymmdd' 'yyyymmdd')
group by type
having count(*) >10