How to limit returned results of a JOIN query in MySQL [duplicate]
So assuming we can exclude the user table, it could be rewritten as: select * from expense, transaction where expense_id = transaction_expense_id Now if you want to apply a limit, you could do it like this: select * from expense, transaction where expense_id = transaction_expense_id and expense_id in (select expense_id from expense limit 1) Would … Read more