Ok thank you for your kind offer, here is the table structure tblprospects ( prospectID int(11) DEFAULT '' NOT NULL auto_increment, - row number handlerID int(11) DEFAULT '0' NOT NULL , - agent /user id handlername text , - agents name companyname text , - prospect detail trade text , - prospect detail contactname text , - prospect detail telnumber text , - prospect detail town text , - prospect detail county text , - prospect detail answer tinyint(2) , - flag 0=no, 1=yes voicemail tinyint(2) , - flag 0=no, 1=yes pitch tinyint(2) DEFAULT '0' NOT NULL , - flag 0=no, 1=yes appointment tinyint(2) , - flag 0=no, 1=yes callback tinyint(2) , - flag 0=no, 1=yes comments text , datestamp timestamp(14) , date date , salesmanID smallint(4) , for whom they are researching leads for PRIMARY KEY (prospectID), KEY prospectID (prospectID) ); So each prospect called has a result, should the prospect go on to make an appointment there and then the appointment field is marked 1 and then the system goes off somewhere to make an appointment. So i want to do some trivia stats as mentioned above for instance: The highest number of calls in a day was XX by XX (agent) on dd-mm-yyyy etc or The highest number of appointments in a day was XX by XX (agent) on dd-mm-yyyy etc I hope hat makes it clearer, i sat and thought about it last night and began to wonder that i might have to use some elopement of php as well as the sql result to get to my final desired result but I’m not sure. Many thanks Gary