的我有这个SQL连接:由多个指标分析
SELECT
artists.id,
actors.id,
actors.count
FROM
artists
INNER JOIN actors ON artists.title = actors.title;
演员表都得到了重复和一些counter
领域。所以不可能有
Tom Waits | 10
Tom Waits | 30
我怎样才能改变我的第一个SQL所以它会返回只有那些演员,谁已经得到MAX(count)
喜欢的东西
SELECT
artists.id,
actors.id,
actors.count
FROM
artists
INNER JOIN actors ON artists.title = actors.title
HAVING MAX(actors.count);
最多投票的汤姆等待! –