SQL Query Performance Improvement Foundation

Background: When a SQL Query takes huge time to execute we start thinking for optimization. But before optimizing a query we need to know some basics facts/terms that you can consider as metrics for optimization. If we understand these basics properly then optimizing a query is really a piece of cake.