wow that was a big help, now the dates are in order with the ID's. Is
that what u were aiming for it to do? IF so its a big start. Now
instead of looking through it manually i need to code up a script that
will spot out the duplicate records (id = id and date = date)
Thanks
Gil
butlerbob@earthlink.net (Bob Butler) wrote in message news:<fa10fb0.0404111812.36574841@posting.google.c om>...[color=blue]
>
giloosh99@hotmail.com (Giloosh) wrote in message news:<ca6b77b6.0404110908.3dbc75c0@posting.google. com>...[color=green]
> > Hello, i need some help if possible...
> > i have a payments table with over 500 records
> > i want to run a query that searches through the table spotting out any
> > duplicate ID#'s and Dates.
> > So basically it will run a search spotting out duplicate ID#'s. Than
> > with in those ID#'s spot out duplicate dates.[/color]
>
> try this
>
> select [id],[date] from thetable
> group by [id],[date]
> having count(*)>1[/color]