Results 1 to 2 of 2

Thread: Avg column in dataset = label1.text?[RESOLVED]

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2002
    Posts
    54

    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.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width