TEOCO interview question

How do you optimize an SQL query