looking for some solutions? You are welcome.

SOLVED: Raw SQL to Eloquent

Leo:

could you help me convert this SQL query to Eloquent:

SELECT item.id, hired.item_id, hired.quantity - item.quantity as quanity FROM items item join hireds hired on hired.item_id = item.id WHERE item.quantity > hired.quantity order by item.id;



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent