Hello. Is is possible to average a column in a dataset then display the results in a label? Just curious. can someone please share the code w/ me? Thanks
Printable View
Hello. Is is possible to average a column in a dataset then display the results in a label? Just curious. can someone please share the code w/ me? Thanks
You can add a field to the query that is the average, I think you'll need to group them to do it, although you can group on something unique to make sure none are missed. Something like this:
SELECT ItemID, AVG(Modifier) AS AvgModifier
FROM ItemAttributeModInfo
GROUP BY ItemID