I want to create a SQL Select to do a unit test in MS SQL Server 2005. The basic idea is this:
select \'Test Name\', foo
Use CASE:
SELECT 'Test Name' [col1], CASE foo WHEN 'Result' THEN 1 ELSE 0 END AS [col2] FROM bar WHERE baz = (some criteria)