G
Guest
I have a single table that list all the years (2001, 2002, 2003) that a
person (Susan, Paul, Sharon) has been a member of my club. (Each record in
the table is unique and each row would have at least 2 attributes (name,
year); e.g.,
Paul 2001;
Paul 2002;
Susan 2001;
Susan 2002;
Susan 2003;
Sharon 2002;
Sharon 2003;
and I need a query that will select all distinct persons who were members in
2002 BUT NOT in 2003. So in my example above, it would return 'Paul'.
I have a solution to do this but it involves multiple queries. I would like
to have a single query, if possible.
person (Susan, Paul, Sharon) has been a member of my club. (Each record in
the table is unique and each row would have at least 2 attributes (name,
year); e.g.,
Paul 2001;
Paul 2002;
Susan 2001;
Susan 2002;
Susan 2003;
Sharon 2002;
Sharon 2003;
and I need a query that will select all distinct persons who were members in
2002 BUT NOT in 2003. So in my example above, it would return 'Paul'.
I have a solution to do this but it involves multiple queries. I would like
to have a single query, if possible.