select '按日期统计',(T1.cost*1/T2.cost*1)*100 pct,ltrim(T1.cost)+'/'+ltrim(T2.cost) cont from (select count(cm.policycode)cost from casetotalsummarize ctsm,casemessage cm where ctsm.policycode = cm.policycode and ctsm.casenumber = cm.casenumber and ctsm.grade_hs='C' and cm.way_hs='' and (cm.handledate_hs between date'2011-10-12' and date'2011-11-29') and cm.link='核损') T1,(select (case when count(ctsm.policycode)=0 then 1 else count(ctsm.policycode) end) cost from casetotalsummarize ctsm,casemessage cm where ctsm.policycode = cm.policycode and ctsm.casenumber = cm.casenumber and ctsm.grade_hs='C' and (ctsm.handledate between date'2011-10-12' and date'2011-11-29') and cm.link='核损') T2