I need to prevent table scan on a big table where a search of a record is based on three fields, one of which may be updated. The searching query looks like this:
select blabla from ttg_transaction where uti = ? and txn_type = ? and state = ?
The index that comes to mind (not unique, not clustered) would the three fields above. But while the first two are constant, 'state' does change during the life cycle of a record.
Is this a good reason to exclude 'state' from the index?