SQL Question

  • I need to display results that are distinct on one column and can choose any result ( the max preferred ) from another column. Here's the example table:

    Letter Number

    A 1

    A 2

    A 4

    B 3

    B 7

    B 9

    I need to display :

    A 4

    B 9

    Bascially I want to use DISTINCT, but only on one column while still displaying a 2nd column.

  • Are you familiar with Max() and Group By?

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply