ROW COUNT
Amit only reaches for ROW COUNT when average per subject has to stay correct in a report.
ROW COUNT on the board — GROUP BY subject. Then say what average per subject looks like after.
Without ROW COUNT, a report gets messy and average per subject is hard to trust.
ROW COUNT shows up in a report. Name average per subject, not “a real-world scenario”.
ROW COUNT trap — SELECT extra column not in GROUP BY. Amit loses marks for that every viva.
Place ROW COUNT next to nearby SQL work — GROUP BY subject is the link.
One breath for ROW COUNT, then average per subject, then SELECT extra column not in GROUP BY. Sit down.
For ROW COUNT: definition + a report + one failure.