这三张表格可以写出sql吗可以按数量进行查询
SELECT count(t.counts),max(t.type) FROM table t GROUP BY t.year,t.type;
其中:counts字段:表示保存数量的字段type字段:区分配件类型的字段(配件A、配件B)希望对你有帮助!