8 months ago

Convert this query to eloquent

Posted 8 months ago by kshitizmittal

I want to convert this query to eloquent

select result.degname,COUNT(result.emp_id) from (Select ed.emp_id,deg.degname from employeedetails as ed LEFT JOIN designations as deg on ed.designation = deg.degid) as result GROUP BY result.degname

Please sign in or create an account to participate in this conversation.