select substring(convert(varchar,AJanDate),1,6) A , count(*) b,Sum(ASumMoney) c
from BunYang group by substring(convert(varchar,AJanDate),1,6)
----------------------
select substring(TO_CHAR(AJanDate),1,6) A , count(*) b,Sum(ASumMoney) c from BunYang group by substring(TO_CHAR(AJanDate),1,6) SQL있데요.. TO_CHAR로 했더니 에러가 발생해요.. Date형을 Char로 바꾸는것을 알려주세요.. 감사합...
^________^
•
2003.07.01 04:49
select substring(convert(varchar,AJanDate),1,6) A , count(*) b,Sum(ASumMoney) c
from B...
from BunYang group by substring(convert(varchar,AJanDate),1,6)
----------------------