In the person table you have the following information
ID | NOME | É_ALUNO | É_RESPONSAVEL
1 | ALUNO | TRUE | FALSE
2 | RESPON| FALSE | TRUE
There is another table with the name responsavel_aluno , this table has the following information;
ID | ALUNO | RESPONSAVEL
1 | 1 | 2
I'd like to give a select as below:
NOME | ALUNO
RESPON | ALUNO
What is the best way to give this select?