我有一个这样的表:
Artist Image Title Smith 2 Country Smith 5 Town Doyle 21 Cat Lawlor 24 Ball Jones 8 Cheese Jones 12 Bread Jones 15 Butter
而且我想设置一个DISTINCT查询以一次返回Artist —与返回哪个记录无关。这就是我要寻找的:
Artist Image Title Smith 2 Country Doyle 21 Cat Lawlor 24 Ball Jones 8 Cheese
我在MS Access数据库上使用ASP。
任何帮助,不胜感激。
Access具有FIRST和LAST聚集,返回按时间顺序输入的第一条或最后一条记录
FIRST
LAST
SELECT Artist, FIRST(Image) AS Image, FIRST(Title) AS Title FROM table GROUP BY Artist