I hope I can explain my problem. I'm using a query manager tool that I can't just write a SQL statement (I click on table fields, etc. and then it creates the statement). It also won't let me have "FROM" in an expression so hopefully, I don't need it. Some quick examples of records and what I need:
"class_id" Table
ID Term Class
1 Fall 2008 10-15
1 Spring 2009 2010-30
1 Spring 2009 410-1
2 Fall 2008 10-15
2 Summer 2008 1010-4
3 Summer 2008 1010-4
3 Fall 2008 5000-60
3 Spring 2009 370-90
4 Fall 2008 900-17
I need to find IDs that have taken classes: Fall 2008 10-15 and\or Summer 2008 1010-4 then also if they have taken any other classes in Spring 2009 so my results from this list would look like:
ID Term Class
1 Fall 2008 10-15
1 Spring 2009 2010-30
1 Spring 2009 410-1
2 Fall 2008 10-15
2 Summer 2008 1010-4
3 Summer 2008 1010-4
3 Spring 2009 370-90
Help is appreciated. Thank you
"class_id" Table
ID Term Class
1 Fall 2008 10-15
1 Spring 2009 2010-30
1 Spring 2009 410-1
2 Fall 2008 10-15
2 Summer 2008 1010-4
3 Summer 2008 1010-4
3 Fall 2008 5000-60
3 Spring 2009 370-90
4 Fall 2008 900-17
I need to find IDs that have taken classes: Fall 2008 10-15 and\or Summer 2008 1010-4 then also if they have taken any other classes in Spring 2009 so my results from this list would look like:
ID Term Class
1 Fall 2008 10-15
1 Spring 2009 2010-30
1 Spring 2009 410-1
2 Fall 2008 10-15
2 Summer 2008 1010-4
3 Summer 2008 1010-4
3 Spring 2009 370-90
Help is appreciated. Thank you