SELECT [Id]
,[Date]
,[Condition]
FROM [CRESULTS]
where condition = 'abc'
I need to find the maxvalue of hour13 and the corresponding date, so far the query i wrote works, But any other alterative ideas?
SELECT top 1 max(abs([Hour13])) as hour13,date
FROM CRESULTS where condition ='a' and Date between '2011-05-16' and '2011-07-10'
group date
order by hour13 desc
You don’t need
MAXhere.