I am trying, with a spectacular lack of success, to return TRUE and FALSE values in my SELECT statement. This SQL (below) is simply illustrative. It doesn't reflect my real world query. I would just like to know how to return such values in T-SQL.
For an idea, should anyone want it, why I need this please see SELECT Assertion.
Code:
SELECT [PR_PRODUCT]
,TRUE AS [CostMissing]
FROM [DBManagement].[dbo].[vwCustStock]
WHERE ([PR_RANGE] In(70,91))
GO
Msg 207, Level 16, State 1, Line 2
Invalid column name 'TRUE'.
Comment