Hi, Let's say you have a Client table and a Staff table with a relationship table ClientStaff that has a foreign key to Client and a foreign key to Staff with a uniqueness constraint on Client, Staff. Meaning a client can have multiple staff associated but never the same staff more than once and vice versa. The question is would it be beneficial to have indexes on the Client and the Staff foreign keys in the ClientStaff table or do you think the index created by the uniqueness constraint is enough? Queries will be along the lines of SELECT * FROM Clients c JOIN ClientStaff cs ON c.id = cs.Client JOIN Staff s ON s.id = cs.Staff
Thanks