Computing standard deviation, variance and correlation in SQL: population vs sample variants
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to compute variance, standard deviation and correlation with SQL aggregates and how the population and sample versions differ. Tests knowledge of built-in statistical functions, differences between database engines, NULL handling, and when each version is the right one to report.