select zip, substring(zip, 3) as f from ziptable group by f
I dont remember the exact syntax but you get the idea.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
You only want the results if there are more than 10 of that result in the table?
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
SELECT SUBSTRING(zipcode, 1, 3) as f, COUNT(*) as num FROM ziptable GROUP BY f HAVING num > 10
__________________
Barand
Must read Review for Serious PHP Developers
NuSphere PhpED 5.5
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.5
(a popular PHP IDE) and
NuCoder 2.0
(a PHP Encoding Utility), read up on all the details.