Argh, so simple
THANK you all

On Tue, Nov 11, 2014 at 1:39 PM, Ted Roche <[email protected]> wrote:

> Quick sample code to play with:
>
> create cursor example (linkcode I, somestring c(10))
> index on linkcode tag linkcode
> insert into example values (1,"One")
> insert into example values (2,"Two")
> insert into example values (3,"Three")
> insert into example values (1,"Oops")
> insert into example values (2,"OopsAgain!")
>
> To get all the rows in the table that have duplicate linkcodes, issue this:
>
> select * from example where linkcode in (select linkcode from example group
> by linkcode having count(*)>1 )
>
> On Mon, Nov 10, 2014 at 5:33 PM, Sytze de Boer <[email protected]>
> 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?
> >
> >
> > --
> > 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: [email protected]
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/CAG1nNy8iH2cYpA5H_znEWjNivuNgDEivg6+F=4ek+rbpt6q...@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