Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: How to retrieve the second most recent date in a table?

    SELECT     TOP 2 ejoindate

    FROM         etest

    GROUP BY ejoindate

    ORDER BY ejoindate DESC

    (Above query will display the two dates as two rows)

     

    SELECT     MAX(ejoindate) AS m1,

                              (SELECT     MAX(ejoindate)

                                FROM          etest

                                WHERE      ejoindate <

                                                           (SELECT    ...

Viewing post 1 (of 1 total)