I have a Query with which I try to bring several values with a single inner join, but the question is that it brings me the different values as rows, therefore I repeat data, what I want is to make a selection of each value that bring the inner join to show them in different columns and in this way, do not repeat the other fields. here I add an example.
SELECT t3.valor,t1.* FROM tabla1 t1
INNER JOIN tabla2 t2 --tabla intermedia entre t1 y t3
ON t1.id=t2.id
INNER JOIN tabla3 t3
ON t2.id=t3.id
T3.VALOR T1.ID T1.EXPEDIENTE T1.NOMBRECOMPLETO
Valor1 1 10184488 JONATHAN GONZALEZ LOPEZ
Valor2 1 10184488 JONATHAN GONZALEZ LOPEZ
Valor3 1 10184488 JONATHAN GONZALEZ LOPEZ
What I want is that the rows of the column call "VALUE", are different columns, being as follows:
T3.VALOR1 T3.VALOR2 T3.VALOR3 T1.ID T1.EXPEDIENTE T1.NOMBRECOMPLETO
Valor1 Valor2 Valor3 1 10184488 JONATHAN GONZALEZ LOPEZ