Re: comparing the result of two comparisions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: oj (nospam_ojngo_at_home.com)
Date: 01/17/05


Date: Mon, 17 Jan 2005 12:28:01 -0800

See previous post for the trick with Bitwise AND.

"Zeng" <Zeng5000@hotmail.com> wrote in message
news:%23WRkDCN$EHA.2180@TK2MSFTNGP10.phx.gbl...
> Hello,
>
> I can't find a way to compare the results of two comparisions. Would
> someone know how to get one of the following methods work? Maybe some
> kind
> of setting that I need to turn on/off to allow it? Most langugages I used,
> this is just another comparision of 2 boolean values, but somehow Sql
> doesn't allow it. Thanks for your help!
>
> select *
> from My_Dummy_Table
> where ( 3 > 2 ) = ( 4 > 2 )
>>>> Server: Msg 170, Level 15, State 1, Line 3
>>>> Line 3: Incorrect syntax near '='.
>
> select case when ( 3 > 2 ) = ( 4 > 2 ) then 1 else 0 end
>>>>Server: Msg 170, Level 15, State 1, Line 1
>>>> Line 1: Incorrect syntax near '='.
>
>



Relevant Pages

  • Re: goddam stupid parents
    ... Rather than compare ideas, you avoid arguing the points by claiming ... yard level. ... pulled this same trick with other posters multiple times in the past ...
    (rec.motorcycles)
  • Re: How to compare "varchar" values?
    ... The first one is a trick, ... The second solution, more database like, is to define a table of scores, two fields, score and scoreValue: ... ie, it allows you to translate the score into a numerical value and then, you have to compare the score value instead of its 'name'. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Floating Point Multiplication - 32 and 64 bit differences
    ... ffloat-store" flag did the trick and your explanation makes sense. ... exhibiting similar behavior and turning optimization on eliminated the ... If you are trying to compare different versions of a program, ...
    (comp.lang.fortran)
  • Re: Survey on tricks of "equal" difficulty (more or less)
    ... balls, 24 catches ... with one trick against # of catches with another trick, ... (The weirder the tricks you offer to compare are, ... stick to more the common tricks - although, feel free to tell me what ...
    (rec.juggling)
  • Re: Survey on tricks of "equal" difficulty (more or less)
    ... balls, 24 catches ... with one trick against # of catches with another trick, ... (The weirder the tricks you offer to compare are, ... stick to more the common tricks - although, feel free to tell me what ...
    (rec.juggling)