select -- this is database specific and I don't know the name of the Access function floor(convert_to_seconds(S_TIME)/600) * 600 as bucket, count(*) group by bucket