我有一个表如下。需要查询来选择用户的最后一项活动。 (这里不应该是相同的用户,单用户单排多个上市)女士访问/ SQL查询
+----------------+---------+--------------------+-----------------+------------+
| Date | BOT_ID | Process | LastModified | Status |
+----------------+---------+--------------------+-----------------+------------+
| 17/09/26 00:00 | User 1 | Interaction record | 9/19/2017 10:50 | In Process |
| 17/09/26 00:00 | User 2 | Single Assessed | 9/26/2017 12:00 | In process |
| 17/09/26 00:00 | User 3 | Interaction record | 9/26/2017 11:35 | Completed |
| 17/09/26 00:00 | User 4 | Metering | 9/26/2017 11:50 | In proce |
| 17/09/26 00:00 | User 1 | Move In | 9/26/2017 11:50 | In process |
| 17/09/26 00:00 | User 4 | Interaction record | 9/26/2017 11:58 | Completed |
| 17/09/26 00:00 | User 5 | Direct Debit | 9/26/2017 11:10 | Completed |
| 17/09/26 00:00 | User 17 | latest | 9/26/2017 0:15 | In Process |
+----------------+---------+--------------------+-----------------+------------+
问题是? –
您对Access或MySQL有疑问吗?请只使用适当的标签。 – Barmar
在MySQL中它会是:https://stackoverflow.com/questions/7745609/sql-select-only-rows-with-max-value-on-a-column?rq=1也许它在Access中类似。 – Barmar