Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2012
    Posts
    3

    Unanswered: Distinct records in a select query.

    I have a table i.e. Master with 7 fields as primary keys,

    i.e.,filghtdesignator,flight number,operatinal suffix,departure date,departure station,arrival station

    how can i select distinst records based only on the fields filghtdesignator,flight number,operatinal suffix,departure date.

    Thank u

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    SELECT DISTINCT
           filghtdesignator
         , flight number
         , operatinal suffix
         , departure date
      FROM daTable
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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