I have a sample with Authors and Books (you can use Authors as RepNumbers)
In the author list below I have given Jones 2 ids - 5 and 12
Query to get all books for the author regardless of his/her AuthorId (repNumber)
Code:
SELECT authors.author_name
, authors.author_id
, BOOK.BookTitle
FROM authors INNER JOIN
(BOOK INNER JOIN BOOKAuthors ON
BOOK.BookId = BOOKAuthors.BookID) ON
authors.author_id = BOOKAuthors.AuthorId
WHERE (((authors.author_name)
In (select distinct author_name from authors)))
ORDER BY authors.author_name;
author_id |
author_name |
4 |
samuels |
5 |
Jones |
6 |
Alyme |
7 |
Willington |
8 |
Arnold |
9 |
Polivka |
12 |
Jones |
Results of the query in the attached jpg
Good luck with your project