Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Aggregate Function

Status
Not open for further replies.

LAM986

Programmer
Nov 4, 2009
15
US
Hello,
I'm using the following query to get the below results.

SELECT MtgID, ClientID, Answer_Text, CreatedDate
FROM Results

MtgID ClientID Answer_Text CreatedDate
3025040 2190 No 1/12/2010
3025040 2190 No Response NULL



I need to group the results to get the last result. When I max(createdDate) and max(Answer_Text) I get the below result. The ANswer_Text should be No. Any help would be greatly appreciated. Thank you.

3025040 2190 No Response 1/12/2010


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top