T-SQL, any ideas?

Jun 13, 2008 14:34

Hello nerdy friends of mine. Anyone know if there an inherent difference to the following select statements?

select * from where SessionID NOT IN (select SessionID from tmpsys_Log with (NOLOCK) where LogLevel = 10)

as opposed to:

select * from where SessionID IN (select SessionID from tmpsys_Log with (NOLOCK) where LogLevel <> 10 ( Read more... )

Leave a comment

Comments 2

xspliffx June 13 2008, 19:19:06 UTC
ah you beat me to it. i had gone out for a smoke to contemplate it, then grabbed coffee...

glad you figured it out though. ;)

Reply


hellagoodstar June 14 2008, 19:58:09 UTC
HOLY SHIT.
i must not be nerdy :)

Reply


Leave a comment

Up