我的 sql语句 模糊查询 日期类型

select tcm.id,tcm.typename ,to_number(to_char(t.issuedate,'YYYYMM')) as issuedate , COUNT (t.id)  tid,SUM(t.cq)  tcq
from tm_meeting t ,tm_code_meetingtype tcm
where t.meetingtype = tcm.typeid and to_char(t.issuedate,'yyyy') like '${year}'
group by  to_number(to_char(t.issuedate,'YYYYMM')),CQ ,tcm.id,tcm.typename order by tcm.typename,issuedate

你可能感兴趣的:(sql)