skip to Main Content

Get the last occurrence in IN clause of Mysql

I have a table for learner as learner_lesson learnerlessonid learnerid lessonid 1 24 42 and another table as learner_lesson_log lessonlogid learnerlessonid progress maxprogress. interactionType createdAt 1 1 0 15 Start 2022-11-02 07:50:30 1 1 0 15 Start 2022-11-02 07:51:30 2…

VIEW QUESTION

How to get current month record in laravel?

Need to get record of current month but query return the wrong result.There is only one record in db.but i get wrong count for the current month $data = UserData::select( DB::raw("count(phone) as total") ) ->whereMonth('creation_date', Carbon::now()->month) ->get(); return view('kpidata', compact('data'));…

VIEW QUESTION
Back To Top
Search