OK. I switched the variables like this:
select ID, m1, m2, m3, m4,
case when m1 in ( @m1,@m2,@m3,@m4 )then 0 else 1 end +
case when m2 in ( @m1,@m2,@m3,@m4 )then 0 else 1 end +
case when m3 in ( @m1,@m2,@m3,@m4 )then 0 else 1 end +
case when m4 in ( @m1,@m2,@m3,@m4 )then 0 else 1 end...
Hi,
I'm new here and I've got a problem. Hopefully some of you who love a challenge can provide some useful suggestions. Let me try to explain the scenario.
It has to do with comparing some values in a recordset to some previously defined reference values and in the process obtain an integer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.