StudentID Session Semester Subject 1 2012 1 1 1 2012 1 2 1 2012 1 3 1 2012 1 4 1 2012 1 5 1 2012 2 6 1 2012 2 7 1 2012 2 8 1 2012 2 9 1 2012 2 10 1 2013 2 1 1 2013 2 13 1 2013 2 14 1 2013 2 15 1 2013 2 16 1 2013 3 17 1 2013 3 18 1 2013 3 19 1 2013 3 20 1 2013 3 21
I don't know what can i name the query which I want to generate. I searched a lot but couldn't find any result.
What I want to do is to write a query which will help me to select the records of semester 1,2 and 3 but want to exclude the records which are the same semester of different session. To specifically say (I want to retrieve semester one of 2012 and 2 and 3 of 2013).
This action is repeated with unspecified session and semester.