Hi,
I am new to mysql. I Have made a small data base and i need some help for joins.
There are three tables
1. user
user_id (pk)
user_name
user_address
2. contact
contact_id(pk)
contact_name
3. user_contact
user_id(pk)
contat_id(pk)
Now u can see there exists many to many relationship between user and contact table that is one user can have many contacts and one contact can be in the contact list of many users; so for normalization i made a junction table with name user_contact
The problem is i want to fetch username and its all contacts from contact table but i do not how to join these three tables to get data from user table and contact table. Can any write the join query that can solve the problem.