Thanks!!
Okay, that worked. Now I want to group by to only see the first 3 char of that field. Here is what I have so far:
SELECT ds_products.pnum, count(ds_products.pnum) FROM ds_products,ds_mfg WHERE ds_products.pnum not like concat(ds_mfg.mfgnum,"%") group by ds_products.pnum
So what I want to select is only the first 3 char of the field ds_products.pnum. Then I want to count how many of those there are.
Can I do this with the GROUP BY fields? like substr(0,3)?