How would you get the standard deviation of a column in SQL without using stddev() function?
Asked in the Technical round stage. Using the provided order tables, calculate the sample standard deviation of item values for delivered orders, excluding NULL values.
standard_deviation.NULL if fewer than two valid values exist.| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| order_status | VARCHAR(30) | Current order status |
| Column | Type | Description |
|---|---|---|
| item_idPK | INT | Unique order item identifier |
| order_id | INT | Referenced order identifier |
| item_value | NUMERIC(10,2) | Value of the order item |