On Mon, Nov 10, 2014 at 4:33 PM, Sytze de Boer <sytze.k...@gmail.com> wrote:
> Friends, can you help me > > > I have a table with approx 50,000 records > About a 1000 have a common link code > > I want to display only those items that have a common link code > There's 2 dozen fields, and a field called linkcode > > SELECT *,COUNT(*) as grp FROM rotables GROUP BY linkcode INTO TABLE > (myfile) > > GRP will tell me if there's more than 1 item with the same linkcode, and I > can print > "where grp>1" > > But that does not display all the items with the same link code. It will > display just the one instance per GRP > > Can anyone help with this? > ------------- -- Get a list of all linkcodes with multiple rows in table and count the rows. Select linkcode, Count(*) GRP from roTables group by linkcode having Count(*) >1 -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmyl3l+k+d8pw0axz6yctuayde6dhoyxmy9zxqjt3sbg...@mail.gmail.com ** 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.