mardi 24 novembre 2015

Laravel 5.1 query using 2 tables

I have 2 tables: items and item_details.

items:

id | name | shop_id

item_details:

id | item_id | price | delivery | ...

I need to get all items with unique names with highest price. In other words I need to get a max price value from each row in item_details table.



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

Aucun commentaire:

Enregistrer un commentaire