Hi,

Try with this code:
CREATE CURSOR fsupdate (usdot Int)
INSERT INTO fsupdate VALUES (1)
INSERT INTO fsupdate VALUES (2)
INSERT INTO fsupdate VALUES (3)
INSERT INTO fsupdate VALUES (1)
INSERT INTO fsupdate VALUES (1)
INSERT INTO fsupdate VALUES (4)
INSERT INTO fsupdate VALUES (5)
INSERT INTO fsupdate VALUES (1)

SELECT usdot, Recno() as Rec ;
  from fsupdate ;
  Where usdot in ;
    (SELECT usdot ;
        from fsupdate ;
        Group by usdot;
        Having Count(usdot) > 1);
  Order by 2, 1 ;
  Into Cursor DuplicateRec
  BROWSE normal
Regards,
Koen

2014-11-10 23:33 GMT+01:00 Sytze de Boer <sytze.k...@gmail.com>:

> 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?
>
>
> --
> Kind regards,
> Sytze de Boer
> Kiss Software
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
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/cacuu1suqmvyolahqfpasgpq0asrzac1qhqgt5q767n8j0-j...@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.

Reply via email to