sqlで日付を月初にしてグループ化する方法  [tips]  [mysql]

レポート用のクエリーとかで、日付を月初にあわせてグループ化したかったりする。
sqlでは以下のようにすればできる。


select cast(date_format(date_column,'%Y-%m-01') as Date) from table
group by cast(date_format(date_column, '%Y-%m-01') as Date);



本当にcastが必要なのかが良くわからん。