SQL Server-在包含外部引用的聚合表达式中指定了多列

时间:2018-10-07 02:14:11

标签: sql-server

运行此命令时出现错误

SELECT Tags
FROM Company  
WHERE Tags IS NOT NULL 
ORDER BY (SELECT SUM(LEN(Tags) - LEN(REPLACE(Tags, token, ''))) / LEN(token) AS score
          FROM (VALUES ('tokena'), ('tokenb'), ('tokenc')) AS X(token)) DESC

我该如何解决?

谢谢

0 个答案:

没有答案