GROUP BY
Amit only reaches for GROUP BY when average per subject has to stay correct in a report.
GROUP BY order — meaning → GROUP BY subject → one limit. Dumping ten features helps nobody.
Without GROUP BY, a report gets messy and average per subject is hard to trust.
Amit ships GROUP BY in a report. That is the use case worth saying.
GROUP BY trap — SELECT extra column not in GROUP BY. Amit loses marks for that every viva.
After GROUP BY, Amit should still remember SELECT extra column not in GROUP BY.
Close GROUP BY with — “If I skip it, average per subject goes wrong like this: SELECT extra column not in GROUP BY.”
Say GROUP BY in one breath, then GROUP BY subject, then SELECT extra column not in GROUP BY.