How do you optimize a slow-running SQL query with billions of rows?

🔍 1. Analyze the Query Execution Plan