max date

  • I have 2 datetime columns in my db table. I need to find out a single maximum datetime value from this table from these 2 columns

    Thanks a lot

  • Select max(dt)a from ( select max(Date1) dtfrom ads_tariff union select max(Date2) dt from ads_tariff) b




    My Blog: http://dineshasanka.spaces.live.com/

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

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