I\'ve been trying to get my head around how to use a single query to select data from two of my tables. If anybody can suggest a better way than a single query, I\'m all ears! P
Simple join, between a common id. Inner join will ensure there are records in the networking table, otherwise it won't show that member. you can replace it with a LEFT JOIN
if you want all the member
rows regardless if they have anything joined in the network
table
SELECT * FROM member m
INNER JOIN networking n
ON (m.networkingID = n.id)
WHERE m.id = 2;