christrinder
03-21-2003, 02:17 PM
Hello,
OK, this is going to be tricky trying to explain this. My DB contains a table, and one of the fields is named 'sref' (short for section reference). I want to produce a summary page showing the amount of records that contain 1 in the sref field, THEN the number of records that contain 2 in the sref field, THEN the number of records that contain 3 in the sref field, and so on. Short of writing a seperate SQL statement for each count, I don't know how best to go about it. Any ideas?
Chris
OK, this is going to be tricky trying to explain this. My DB contains a table, and one of the fields is named 'sref' (short for section reference). I want to produce a summary page showing the amount of records that contain 1 in the sref field, THEN the number of records that contain 2 in the sref field, THEN the number of records that contain 3 in the sref field, and so on. Short of writing a seperate SQL statement for each count, I don't know how best to go about it. Any ideas?
Chris