my table consists data after research my query looks like this
- Select * From TableName join (select event, Max(Date_Time) as maxDate
- FROM TableName group by Event) as t2
- on TableName.Event = t2.event and TableName.Date_Time = t2.maxDate
- UNION
- Select * From TableName join (select event, Min(Date_Time) as minDate
- FROM TableName group by Event) as t2
- on TableName.Event = t2.event and TableName.Date_Time = t2.minDate Order By TablName.Event
through above Query finally got this result.. in this i need single record for event name burry. i have draw table in below i need like that with that two reocrd