Nokia interview question

How do you optimize SQL queries on a database