Results 1 to 1 of 1
  1. #1
    mfran2002 is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2008
    Posts
    2

    how to translate "row_number"?

    i have some duplicates rows in my table and i have to keep only one of them

    example:

    field1|field 2|field3


    johnboy|mick | jack
    sara | fara | mara
    johnboy|mick | jack
    johnboy|mick | jack
    sara | fara | mara
    johnboy|mick | jack

    i need:

    field1|field 2|field3
    johnboy|mick | jack
    sara | fara | mara

    without duplicates rows....


    this query works on oracle:

    select *
    from mytable
    where rowid in (select rid
    from (select rowid as rid, row_number() over(partition by myfield order by myfield ) as rn
    from mytable)
    where rn > 1)

    but i don't know how to do in access..

    thanks a lot
    mick
    Last edited by mfran2002; 09-17-2008 at 04:09 AM.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access 2003 Date() Function returns "#Name?"
    By smartel@soprema.ca in forum Programming
    Replies: 5
    Last Post: 01-18-2012, 05:52 AM
  2. Replies: 0
    Last Post: 09-25-2008, 12:19 PM
  3. Export to .rtf of "104-" converts to "-655&qu
    By Sherri726 in forum Import/Export Data
    Replies: 0
    Last Post: 12-19-2006, 03:16 PM
  4. Replies: 2
    Last Post: 08-31-2006, 12:19 PM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums