I have a SQL query I am running. What I was wanting to know is that is there a way of selecting the rows in a table where the value in on one of those columns is distinct? When
You need to do it with a sub select where you take TOP 1 of student where the teacher is the same.