안녕하세요. 알아낼 수없는 질문이 있습니다. 가장 최근의 주석 만 표시된 최종 사용자 항목 (예)을 나열하려고합니다.표시 할 필드 그룹화 가장 최근 날짜
select * from systems where type = "End User Items" group by ID
을하지만 결과는 여전히 최신 날짜가 표시되지 것입니다 :
ID Name EventDate Type
1 PC 12/12/2012 End User Items
1 PC 11/12/2012 End User Items
1 PC 10/11/2012 End User Items
2 Mobile 12/12/2012 End User Items
2 Mobile 11/01/2012 End User Items
2 Mobile 12/12/2011 End User Items
3 Server 12/12/2013 Server
그래서 나는이 같은 것을 시도 할 것이다. 도움이 될 것입니다.
해당 샘플 입력에 대해 원하는 출력은 무엇입니까? – MarcinJuraszek
최근 코멘트를 보시겠습니까? 코멘트 란 어떤 필드를 참조합니까? –