I have a table where IDs can have contact names. An ID could have 1 primary contact and more than 1 non-primary contact (some IDs might not have any non-primary contacts and some IDs might not have a primary or non-primary contact). Is it possible to return the following from this example below?
ID Contact Primary
1 John Doe Y
1 Jane Doe N
1 Mary Doe N
2 John Smith Y
3
Results wanted:
ID Contact Primary
1 John Doe Y
1 Jane Doe N (only 1 non-primary contact is retrieved)
2 John Smith Y
3
Note: I'm using a query manager that won't allow me to have "from" in an expression so if this can be done, hopefully, it doesn't involve a "from" in an expression.
I appreciate the help.
Thanks
ID Contact Primary
1 John Doe Y
1 Jane Doe N
1 Mary Doe N
2 John Smith Y
3
Results wanted:
ID Contact Primary
1 John Doe Y
1 Jane Doe N (only 1 non-primary contact is retrieved)
2 John Smith Y
3
Note: I'm using a query manager that won't allow me to have "from" in an expression so if this can be done, hopefully, it doesn't involve a "from" in an expression.
I appreciate the help.
Thanks