-6
Good, I have the following tables
Livro:
ID_Livro PK
Nome
Aluno:
ID_Aluno PK
Nome
RegistoLivroAluno:
ID_Registo PK
ID_Aluno (chave extrangeira de Aluno)
ID_Livro (chave extrangeira de Livro)
)
I need to know in SQL, What is the Query that can see the Id_student and the Id_book, of those that are not associated, or see the books that a particular student does not have.
Have you tried anything? What was the result? Your question is really about Mysql, SQL Server, Mysqli and Sqlite? Please review the tags you used.
– Woss
The NOT EXISTS clause can be of great help. If you want I can give an example in Postgresql.
– anonimo