0
On the table person has the following information
ID | NOME | É_ALUNO | É_RESPONSAVEL
1 | ALUNO | TRUE | FALSE
2 | RESPON| FALSE | TRUE
There is another table with the name student, in this table has the following information;
ID | ALUNO | RESPONSAVEL
1 | 1 | 2
I would like to give a select as below:
NOME | ALUNO
RESPON | ALUNO
How best to give this select?
Se entendi direito: Seria algo como 
SELECT tmain.nome as nome_aluno, taux.nome as nome_responsavel
FROM pessoa as tmain 
INNER JOIN responsavel_aluno as tresponsavel ON tresponsavel.id = tmain.id AND tmain.É_aluno is true 
INNER JOIN pessoa as taux ON taux.id = tresponsavel.responsavel I hope I’ve helped
– Marcus Italo