HAVING
HAVING sits in the report. Rohit’s job is subjects with avg > 60. Write that first.
Do HAVING once by hand. HAVING AVG(marks) > 60. Change one input. Say the new result out loud.
Without HAVING, the report gets messy and subjects with avg > 60 is hard to trust.
Rohit ships HAVING in the report. That is the use case worth saying.
HAVING trap — WHERE instead of HAVING on aggregates. Rohit loses marks for that every viva.
HAVING is not a lonely heading. Rohit ties it to subjects with avg > 60.
Close HAVING with — “If I skip it, subjects with avg > 60 goes wrong like this: WHERE instead of HAVING on aggregates.”
Say HAVING in one breath, then HAVING AVG(marks) > 60, then WHERE instead of HAVING on aggregates.