Results 1 to 3 of 3

Thread: Not Unique

  1. #1
    Join Date
    Oct 2005
    Posts
    58

    Unanswered: Not Unique

    How do I write a select statement that finds items in a table that are not unique between two fields using the following?

    Select A.KEY, AP.[EXPIREDATE]
    From ACTKEY A Left Outer Join ACTKEY_PRODUCT AP
    On A.KEY = AP.KEY

  2. #2
    Join Date
    Dec 2004
    Location
    California, USA
    Posts
    93
    I'm not sure that I understand your question. Can you elaborate on your need a little?
    Whoever imagines himself a favorite with God holds others in contempt. - Robert Green Ingersoll, lawyer and orator (1833-1899)

  3. #3
    Join Date
    Jul 2003
    Location
    San Antonio, TX
    Posts
    3,662
    The poster is probably referring to this:

    Select A.KEY, AP.[EXPIREDATE], count(*)
    From ACTKEY A Left Outer Join ACTKEY_PRODUCT AP
    On A.KEY = AP.KEY
    group by A.KEY, AP.[EXPIREDATE]
    having count(*) > 1
    "The data in a record depends on the Key to the record, the Whole Key, and
    nothing but the Key, so help me Codd."

Posting Permissions

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