当我执行我认为创建良好的查询时出现异常,错误是:Msg 102, Niveau 15, État 1, Ligne 6 Syntaxe wronge vers ')'。这里的请求:
SELECT DISTINCT designation FROM
(select top 100 percent designation , code_piececomptable
from cpt_lignepiececomptable WHERE code_piececomptable IN
(SELECT code_piececomptable
FROM cpt_piececomptable WHERE terminer is null or terminer <>1)
ORDER BY code_piececomptable)