The following query doesn’t work in T-SQL:
SELECT Balance < Credit
FROM Accounts
with the following error:
There was an error parsing the query. [ Token line number = 2,Token line offset = 23,Token in error = < ]
Balance, Credit and Accounts are all valid table/field names.
Why doesn’t this work?
Because T-SQL (both in SQL Server and SQL Server CE) doesn’t hava a native
BOOLEANdata type, and logical expressions can only be used in certain places, likeWHEREandJOINclauses.