Connecting Tech Pros Worldwide Help | Site Map

Uusing MAX() function

Newbie
 
Join Date: Oct 2007
Posts: 1
#1: Oct 30 '07
I have a select statement like
select air_date, air_time , id, title and some more fields.

The title and air_date fields are dublicates for some records and i would like to return only the latest record with identical title and air_date.

Not sure how to do this. let me know thanks
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#2: Oct 31 '07

re: Uusing MAX() function


Quote:

Originally Posted by harpreetnc

I have a select statement like
select air_date, air_time , id, title and some more fields.

The title and air_date fields are dublicates for some records and i would like to return only the latest record with identical title and air_date.

Not sure how to do this. let me know thanks

You can get MAX on air_date group by flight no or some other column which will give you the data as you require!!
Reply