I have two tables:
Table Users
UserId Name
1 John
2 Alice
3 Tom
4 Charles
and
Table Clients
Id Name1 Name2 Name3
1 1 3 4
2 2 1 3
I would like to make a SQL query where for
Clients.Id = 1
the results are like:
Id Name1 Name2 Name3
1 John Tom Charles
Using INNER JOIN I am able to do that for each column from Clients but not for the whole record (all three columns).