select i.sicil_no,
m.adi,
m.soyadi,
i.net_tutar,
i.odeme_tarihi
from ibrmt050 i,
mismt301 m
where (i.sicil_no=m.sicil_no and
odeme_turu='36' and
odeme_tarihi between '01/01/2012' and '30/06/2012')
GROUP BY TO_CHAR(i.odeme_tarihi,'MM') ,
To_CHAR(i.odeme_tarihi,'YYYY')
ORDER BY TO_CHAR(i.odeme_tarihi,'YYYY') ,
TO_CHAR(i.odeme_tarihi,'MM');
我想按月列出这个查询,但它给出了错误。
“不是 GROUP BY 表达式”
我应该做些什么 ?