I have a table Person
with columns personId, teamId, departmentId
, among others. Most of the query use a combination of these columns on the where.
Example
Select * from .. where personId = 2 and departementId = 1
Select * from .. where personId = 2 and teamId = 1
Select * from .. where departmentId = 2 and teamId = 1
My question is, should I create an index for each of these column individually?