sql查询错误#语法

vybvopom  于 2021-06-25  发布在  Mysql
关注(0)|答案(0)|浏览(142)

Select heros.Nom,heros.Prenom
From (
    SELECT  ID_Heros, 
            COUNT(ID_ville) AS nmbr,
            (
                SELECT * 
                FROM etape 
                RIGHT JOIN participe ON etape.ID_Expedition= pqrticipe.ID_Expedition
            ) as sub1 
    GROUP BY ID_Heros 
    ORDER BY COUNT(ID_ville) LIMIT 1
) As sub2 
INNER JOIN heros On sub2.ID_Heros = heros.ID_Héros

问题:查询用于:最游历的英雄(穿越的城市最多)

1064-“group by id\u heros order by count(city\u id)limit 1)as sub2”附近的语法错误

INNER JOIN hero 'at line 5

为什么我会有这个错误(我怎样才能修好它(也许)
我想是关于2点,但我不确定

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题