Microsoft Interview Question

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