On 1/24/07, Desmond Lloyd <[EMAIL PROTECTED]> wrote:
> This is very simple but I need to select all the distinct items from a file 
> that includes the part number and a count of records generated for each,  
> resulting cursor would look like this:
>
> Part No,  # of records
>

SELECT partno, count(*) AS howmany
FROM myfile
GROUP BY partno
ORDER BY partno

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to