mercredi 18 janvier 2017

Sub-queries in Laravel

I have a query in MySQL

SELECT * FROM group_recordings WHERE id IN ( SELECT MAX(id) FROM group_recordings GROUP BY time_span )

there is a sub-query in "IN" operator, I want to convert this query in laravel eloquent, I have GroupRecording Model. Anyone help me with that



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2jn8XTy
via IFTTT

Aucun commentaire:

Enregistrer un commentaire