Hi,
I am trying to do a select statement to find out where my clients are from;
select district, count(*) AS cnt from client where 1 group by district order by cnt desc
This works fine but due to the fact that every entry is handtyped the groupd by isnt very efficient.
Is there a way of doing this with the first three letters of the postcode?
This would group things perfectly but only if it ignores the last few digits.
Has anyone done anything like this before or knows how to help?
Thanks a lot.