, 17 2017 . 15:33
+
, .
SELECT Comment.[ ], Comment.com, Comment.date_com
FROM (SELECT [ ], Max(date_com) AS lastdate FROM Comment GROUP BY [ ]) AS lastc INNER JOIN Comment ON (lastc.[ ] = Comment.[ ]) AND (lastc.lastdate = Comment.date_com);
, , , First Last. ?
, :
SELECT Comment.[ ], Comment.com, Last(Comment.date_com) AS [Last-date_com]
FROM (SELECT [ ], Max(date_com) AS lastdate FROM Comment GROUP BY [ ]) AS lastc INNER JOIN Comment ON (lastc.[ ] = Comment.[ ]) AND (lastc.lastdate = Comment.date_com);
http://www.sql.ru/forum/1274347/ispolzovanie-last