SQL Select Max Date with Multiple records

后端 未结 1 1618
逝去的感伤
逝去的感伤 2021-02-14 22:56

I am struggling with a query to pull most recent entries. I have a Notes table that contains the following columns:

BusinessDate
ReportGuid
NoteGuid
Note
NoteDa         


        
相关标签:
1条回答
  • 2021-02-14 23:48

    You need to group by ReportGuid and select Max(NoteDate). That will select the maximum of each group.

    0 讨论(0)
提交回复
热议问题