The error is self-explanatory; you are trying to compare 2 values that are different data types
, the first is a character string and the second is an integer.
The problem is most likely in your
clause as outlined below.
FROM Production.Product as p
, Sales.SalesTerritory as s