Select the result of a comparison in SQL statement -


How do I get the following:

  as a (1 <2 ), (1> 2)   

in the form of two so that it will give the following results:

  One two ------- -------- Correct Wrong   

I am using SQL Server but a Cross DBMS example would be nice.

  (case when (1 <2) then 'true'   < P> Instead of the position, one as you, (in the case when (1> 2) then 'true' and 'falls' can also use any variable or any column values, actually an expression .   

Comments