要查询某一类记录在所有记录中的比。select count(*)/所有记录数 from tbl
where mydate<=:mydate
group by kind要怎么写才能正确?