I'm a bit confused with inner/left join.
I've got 3 tables:
users
-> id (PRIMARY with auto increment)
-> first_name
-> last_name
-> email
-> status
companies
-> id (PRIMARY with auto increment)
-> company_name
-> email
-> status
link
-> id (PRIMARY with auto increment)
-> user_id
-> company_id
-> status (if the connection is active)
I am trying to use the link connection table
and then grab all data from users
and companies
that are connected with each other. Right now I am doing that in 3 steps, get the user_id then check link table and grab the company_id and then get the companies info.