Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Population Standard Deviation per Department

Return each department's population standard deviation of salary rounded to two decimals. Order by department_id.

Table schema

Employees(id INT PRIMARY KEY, department_id INT, salary INT)

Sample data

id | department_id | salary
1 | 1 | 10
2 | 1 | 20
3 | 1 | 30
4 | 2 | 50
5 | 2 | 50

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.