select partno, count(partno) from MyTable group by partno into cursor mycursor
John Weller 01380 723235 07976 393631 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Desmond Lloyd > Sent: 24 January 2007 19:33 > To: [EMAIL PROTECTED] > Subject: VFP9: SQL Help > > > 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 > > TIA, > Desmond > 8-) > > > > > > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > text/plain (text body -- kept) > text/html > --- > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] 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.

