Hi there :)
I need to join 2 one to one tables. How can i do that? Here's sth i've wrote, but it doesn't work.
SELECT * FROM utilizator JOIN client ON utilizator.id_client=client.id_client ON utilizator.id_utilizator=client.id_utilizator WHERE id_utilizator=username ...etc
Thanks!
Join 2 tables one to one
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Shivanand ArurRank #920 · 2.3K reputationPosted Apr 30, 2013, 2:44 AM EDT
SELECT * FROM utilizator INNER JOIN client
ON utilizator.id_client = client.id_client AND utilizator.id_utilizator = client.id_utilizator
WHERE id_utilizator=username ...etc
Please mark the answer as accepted if it helped!!!
Sreejesh SPRank #1,975 · 740 reputationPosted Apr 30, 2013, 2:46 AM EDT
SELECT * FROM utilizator inner JOIN client ON utilizator.id_client=client.id_client and
utilizator.id_utilizator=client.id_utilizator WHERE id_utilizator=username ...etc
Try this code
Thanks
Sreejesh S P