I have a many-to-many relationship between students and classes as shown below. I would like to get the IDs of all the students who are not registered for any classes.
Because of the size of the dataset, I'd like to avoid using NOT IN. Is there a more efficient solution?