Ryan Edgar wrote: > Sorry, should have said I'm using MS SQL 2000. I'm pulling data from survey > results which will have a value in the range 1 - 5 so if I have 50 surveys, > I'll want to find the max, min, upper and lower quartiles and median of the > dataset for each individual quesion. i.e. 1 question = 1 box in the > graphical output.
Those aren't really hard to do just in SQL: SELECT MAX(dataset) as max, MIN(dataset) as min, Count(dataset) as freedom FROM table; SELECT TOP (.25 * freedom) dataset as upper FROM table ORDER BY dataset; SELECT TOP (.5 * freedom) dataset as mean FROM table ORDER BY dataset; SELECT TOP (.75 * freedom) dataset as lower FROM table ORDER BY dataset; Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209043 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

