We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
I'm trying to use group by and count together in a query but the count always returns null. Please help me with this
DB::table('contracts')->groupBy('code', 'status') ->select(DB::raw('COUNT(*) as count')) ->having('count', '>', 1) ->get()
DB::table('contracts')->groupBy('code', 'status') ->select(DB::raw('COUNT(*) as
')) ->having('count', '>', 1) ->get()