Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Average versus Medium
Message
From
25/05/2002 13:23:01
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00660989
Message ID:
00661389
Views:
20
Jim,

I didn't see anyone mention the "mode" or most commonly occurring value, so I thought I would. It seems that it would also be useful in your business.
SELECT Price, COUNT(*) AS NumberSold ;
    FROM Sales ;
    GROUP BY 1 ;
    ORDER BY 2 DESCENDING
YOu might never have sold a foal for the "average" price, but you sell most foals for the "mode" price.


>My boss wants to calculate the average and medium price for horses sold.
>What are the philosopical differences between the two methods?
Previous
Reply
Map
View

Click here to load this message in the networking platform