|
-
Jan 12th, 2003, 02:19 AM
#1
Thread Starter
Member
Avg column in dataset = label1.text?[RESOLVED]
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
Last edited by Nintendo_Wizard; Jan 16th, 2003 at 12:16 PM.
-
Jan 12th, 2003, 04:11 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|