Domanda di colloquio di Microsoft

Can you explain how to optimize a SQL query for large datasets?