Details
Description
See the attached reproducer. Generated SQL is:
select _T0.MEETINGID, max (_T0.AttachmentDate) from USERSCHEMA.MEETING as _T0 inner join USERSCHEMA.MEETINGATTACHMENT as _T1 on (_T1.MEETINGID = _T0.MEETINGID) group by (_T0.MEETINGID)
_T0.AttachmentDate should be _T1.AttachmentDate here.