I have three tables
USER TABLE
userid, username
1 alpha
Email TABLE
id userid email
1 1 alpha1@test.com
2 1 alpha2@test.com
3 1 alpha3@test.com
Phonenumber TABLE
id userid phonenumber
1 1 123456
2 1 123457
3 1 123458
How can i get the below result using a single query
userid username email phonenumber
1 alpha alpha1@test.com 123456
1 alpha alpha2@test.com 123457
1 alpha alpha3@test.com 123458

alpha1@test.combe related to number123456and not to123457? Or to123458Or to all 3? Random choice? – ypercube Apr 6 '12 at 12:28