Ambush Interview Question

How would you optimize a database query?