I am trying to select the people in a table that exist with a certain value in one field, and do not otherwise appear in the table.
Here’s a sample of the data in the table:
Name IDNum
John 1
John 2
John 3
Mary 1
Mary 2
Mary 3
Paul 2
Larry 1
Larry 2
Larry 3
Joe 3
I need a query that returns only the people with a 2 or a 3, but don’t have any other numbers.
So the rows I would like to select would be –
Name IDNum
Paul 2
Joe 3
Thanks for help!
Here’s a sample of the data in the table:
Name IDNum
John 1
John 2
John 3
Mary 1
Mary 2
Mary 3
Paul 2
Larry 1
Larry 2
Larry 3
Joe 3
I need a query that returns only the people with a 2 or a 3, but don’t have any other numbers.
So the rows I would like to select would be –
Name IDNum
Paul 2
Joe 3
Thanks for help!