Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: SQL teaser

    You can do it without a join:

    SELECT DISTINCT ID, DESC, MAX(DATE) As Max_Date

    FROM Table

    WHERE DATE <= Getdate()

    GROUP BY ID, DESC

Viewing post 1 (of 1 total)