Is there a way to use a query statement like this..?
SELECT LEFT(ZIPCODE,5), COUNT(*) FROM MYTABLE GROUP BY LEFT(ZIPCODE,5)
I've also tried this..
lcMyzip=left(zipcode,5)
SELECT &lcMyzip, count(*) from mytable group by &lcMyzip
I'm running VFP 6 and it says that the SQL column ' ' does not exist. I've just been making a new field using the first 5 characters then running the query. Thanks
SELECT LEFT(ZIPCODE,5), COUNT(*) FROM MYTABLE GROUP BY LEFT(ZIPCODE,5)
I've also tried this..
lcMyzip=left(zipcode,5)
SELECT &lcMyzip, count(*) from mytable group by &lcMyzip
I'm running VFP 6 and it says that the SQL column ' ' does not exist. I've just been making a new field using the first 5 characters then running the query. Thanks