By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
(No column name) |
---|
Microsoft SQL Server 2019 (RTM-CU16) (KB5011644) - 15.0.4223.1 (X64) Apr 11 2022 16:24:07 Copyright (C) 2019 Microsoft Corporation Express Edition (64-bit) on Windows Server 2019 Standard 10.0 <X64> (Build 17763: ) (Hypervisor) |
10 rows affected
ITEM_CODE | Mean | StandardDev | Median |
---|---|---|---|
ITEM1 | 200.000000 | 79.0569415042095 | 200 |
ITEM2 | 1275.000000 | 955.57574268082 | 1300 |
Msg 8120 Level 16 State 1 Line 5
Column 'OC_VDATA.data1' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.