I've got one main users database table and a "meta" table to outer join. Basically the essential query is
SELECT * FROM users_table
LEFT OUTER JOIN meta_table ON users_table.id = meta_table.user_id
ORDER BY users_table.id ASC
But I have to limit results on the users_table ID column. If I use the standard LIMIT clause, the query will count also meta values.
Would be possible to limit on the user's table ID column and associate metas with the join?
the query will count also meta values
? You can limit from the users_table and then left join meta_table, but looks like the result would be same. Please explain with an example.