Kindly help with this sql query,
Trying to include WHERE j.category=1, leads to an error
SELECT TOP(3) COUNT(e.[PostingID]) as itemcount, e.PostingID, j.title, j.keywords, j.category FROM Views e JOIN Posting j ON e.PostingID = j.PostingID GROUP BY e.PostingID, j.title, j.keywords WHERE j.category = 1 ORDER BY itemcount DESC
Error: There was an error parsing the query. [ Token line number = 1,Token line offset = 194,Token in error = WHERE ]
Thanks