Compare WHERE vs HAVING with aggregates
Company: PayPal
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: Medium
Interview Round: Onsite
Quick Answer: This question evaluates a candidate's understanding of SQL aggregation and group-level filtering, specifically the roles of WHERE and HAVING when filtering aggregates and how query execution order affects which clauses can reference aggregate expressions.