As simplified as I can make, a User goes through a process to select clients they want to include in 1 or more reports. The process writes records into a SelectedClients table, with only 2 fields: UserID and ClientID.
Reports can then be run against this group of clients with this SQL:
SELECT tblClients.* FROM tblClients INNER JOIN tblSelectedClients
ON tblClients.ClientID = tblSelectedClients.ClientID
WHERE tblSelectedClients.UserID = [myUserID]
(Of course, the actual SQL for a specific report will have joins to other tables/queries, but I don’t think that’s an issue here.)
So my question is, should my PrimaryKey for tblSelectedClients be UserID/ClientID, or ClientID/UserID, or maybe it doesn’t even matter?