有没有什么办法只返回如下结果集? id bookname qici 1 读者 2011年第4期 2 读者 2010年第4期
------解决方案--------------------
SQL code
SELECT id, bookname, qici, LEFT(qici, 4) AS nian, RIGHT(LEFT(qici, 7), 1) AS qi
INTO newtb
FROM tbname
SELECT id, bookname, qici
FROM newtb
WHERE (qi IN
(SELECT MAX(qi)
FROM newtb
GROUP BY nian))
DROP TABLE newtb