In the following screenshot, you can see city rows repeating 3 time ang with different values so I need to merge 3 cities into one ang, its value should be its average value.
Thanks sai kumar
In the following screenshot, you can see city rows repeating 3 time ang with different values so I need to merge 3 cities into one ang, its value should be its average value.
Thanks sai kumar
Just do this:
SELECT [Metric_Name]
,AVG(THSLD_RANGE_TO_VAL)
FROM [mytable]
GROUP BY [Metric_Name];
You can try the following query
SELECT Metric_Name,AVG(THSLD_RANGE_TO_VAL) as Average
FROM MetricTable
WHERE Metric_Name='CITY'
GROUP BY Metric_Name