SELECT Sys_Corporation.ID, Sys_Corporation.last_Name, Sys_Corporation.email,
(3 * dbo.WordCount('h', Sys_Corporation.last_Name) + dbo.WordCount
('h', Sys_Corporation.email)) *
CASE
WHEN 'h' IS NULL THEN 1
ELSE 3 * dbo.WordCount('ggg', Sys_Corporation.last_Name) + dbo.WordCount('ggh',
Sys_Corporation.email)
END AS Rank
FROM Sys_Corporation where rank>0 ORDER BY Sys_Corporation.Rank
为什么我加了where rank>0 这个就说“列名 'rank' 无效。”呢............