SELECT DISTINCT Interests.Interest_name, Impressions.Count
FROM Interests
WHERE Vertical_name = 'Retail'
INNER JOIN Impressions ON Interests.Interest_Name = Impressions.Interest_Name;
上述查詢生成錯誤SQL:問題與WHERE子句
Lookup Error - SQL Server Database Error: Incorrect syntax near the keyword 'Inner'.
如果我刪除WHERE
條款它的工作原理完全確定。我不確定是否存在語法問題?
where子句應該在連接之後出現。投票結束爲簡單的語法錯誤。 – jpw