Mauricio Morales Soto (5/1/2009)
All the queries should return NULL.Also I tested and the result it's the same.
You have to reset the variable to -1 before each test. See the code I posted earlier.
LinkedIn: http://www.linkedin.com/in/sqlrv
Twitter: http://www.twitter.com/sqlrv
Website: http://sqlrv.com