Hi, My first post so please have mercy. I have written a thing to collect about 45 items of data about certain events and it works. (Having said which, after watching this list for a few days I think I should re-write much of it). This data is fed into a single table on a mysql database. I need to allow users to be able to see the statistcal output from searches (predesigned ? or designed by them on the fly?) eg: what proportion of field1 = 'me' cases also had fields 3 7 and 9 and how does this compare to the average of field1 = all_exceept_me. Can anyone suggest where I moght look to get some ideas about how to set out attemoting this. This is my first venture into perl (and progamming for that matter) TIA Francesco