select substring(ga_jsdt from 1 for 7) as mnth, sum(ga_cgmt) as
amnt from tr110t
group by substring(ga_jsdt from 1 for 7)
union all
select '합계' as mnth, sum(ga_cgmt) as amnt from tr110t
오라클에서는 그냥되는 코드인데...화이어버드에서는
안되네요...
substring(ga_jsdt from 1 for 7) 과 '합계' 의 데이터 타입이
안맞아서 그렇다는데요...
어찌하면 가능한가요?
감사합니다.
|