1

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.

enter image description here

Thanks sai kumar

2
  • 2
    Most people here want formatted text, not images (or links to them.)
    – jarlh
    Commented Nov 29, 2017 at 8:17
  • 1
    What have you tried? Show us your current query attempt.
    – jarlh
    Commented Nov 29, 2017 at 8:17

2 Answers 2

0

Just do this:

SELECT [Metric_Name]
      ,AVG(THSLD_RANGE_TO_VAL)
FROM [mytable]
GROUP BY [Metric_Name];
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.