Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    52

    Cool Unanswered: Find unique combinations of two columns

    Hello all,

    I would like to find the unique combinations of records in a table:

    Suppose this is my source table:
    ColA ColB
    A 1
    A 1
    B 2
    B 3
    A 1

    The result of my query should be then:
    A 1
    B 2
    B 3

    Anybody an idea how to accomplish this? Distinct (colA, colB) doesn't seem to work in Access.

    Thanks for your answers!

    Philip

  2. #2
    Join Date
    Jun 2004
    Location
    Seattle, WA
    Posts
    601
    did you try
    Code:
    Select DistinctRow ColA, ColB
    From Table;
    ???

  3. #3
    Join Date
    Mar 2004
    Posts
    52
    Distinctrow didn't do the job, distinct did! Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •