MySQL Forums
Forum List  »  Newbie

Join 3 tables
Posted by: Ruddiger Topp
Date: June 16, 2005 01:07PM

hello all

i have a little problem that i came across. i want to join three tables and i got it to do that but when want to see the results if there is not a record in all three tables the data for that person wont show up only the person who has a record in all three tables will.

SELECT * FROM users,user_info,user_contact where users.id = user_info.user_info_users_id and user_info.user_info_id = user_contact_id

how can i get it to show all the data and just show blank space if there is no record in one table. like the user_contact table

any help would be great

thanks

Options: ReplyQuote


Subject
Written By
Posted
Join 3 tables
June 16, 2005 01:07PM
June 16, 2005 11:56PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.