Image you have 2 tables like this:
User: with columns ID, NAME and APPARTMENT_ID.
Appartment: with columns ID, ADDRESS.
user.appartment_id is a foreign key for appartment.id.
With a left join I can do something like:
select u.name, a.address from user as u
left join appartment as a on u.appartment_id = a.id
And users with appartment_id null will match. If i write a select with this other structure (without using left join) those users won't match.
selct u.name, a.address from user as u, appartment as a
where u.appartment_id = a.id
Is there a way to modify the second query in order to obtain the same result set of the first, but without using left join?
Thanks