我收到此错误 - 在第 5 行的“int inner join categories as cat on int.categoryID = cat.categoryID GRO”附近使用正确的语法
我的 sql -
SELECT interest_desc, categoryID, category_desc, MAX(num_in_cat) AS num_in_cat
FROM
(
SELECT int.interest_desc, int.category_ID, cat.category_desc,
COUNT(categoryID) AS num_in_cat
FROM
interests as int
inner join categories as cat
on int.categoryID = cat.categoryID
GROUP BY int.interest_desc, int.categoryID
) subsel
GROUP BY interest_desc, categoryID"
谢谢