ZS Associates Interview Question

Question-related to case study. Joins Difference between Where and having clause,