I'm doing select
of branch_id
, month
. What I try to do is count the date records.
The problem arises when I do the DB::raw('MONTH(tic_date_in) month')
, I do not recognize the as month
in groupBy('month')
I have the following code:
I'm working with Sql Server.