Composite indexes: the order of the columns

An index on two columns can find a customer's orders and hand them over already sorted. Put the columns the wrong way round and it serves a different question.

Checking your access…