I have 2 tables: Students and Prestamos_Libros. The table Prestamos_Libros has a state field with three possibilities, 1, 2 and 3.
the table Students has 15,000 records, of which 259 records belong to group 10. I can list the students of group 10 who have borrowed books (state 1 and 3), they are 127, but I need to know the students of group 10 that they have not borrowed books (ie state 2).