Good afternoon,
I have this query
SELECT
tblcliente.idCliente,
tblclienterespostapre.resposta
FROM
tblcliente
INNER JOIN tblclienterespostapre ON tblclienterespostapre.idCliente = tblcliente.idCliente
INNER JOIN tblpergunta ON tblclienterespostapre.idPergunta = tblpergunta.idPergunta
WHERE
tblpergunta.idPergunta = 16 OR
tblpergunta.idPergunta = 34 OR
tblpergunta.idPergunta = 35 AND
tblcliente.estado = 1
That returns this result to me
I needed that instead of returning 6 rows in two columns I would return two rows in 3 columns, of this sort:
Linha 1: 42 | andre da silva | 930000000 | [email protected]
linha 2: 43 | cliente numero 2 | telefone | email |
This is my database template
This basically is an application that generates users, these users are composed of several questions in which the questions can have several characteristics, like type of question, whether it is public or not, whether it has been validated or not, these questions are dynamic, that is new questions can be added for all clients.
It's a bit confusing: s
If it were possible to name the columns it was also an added value
Thank you