Microsoft
Software
Hardware
Network
Question : SQL <>
I am trying to select records where the 3 and forth characters are not equal to N7
Here is my code.
WHERE (LEFT(RIGHT(_Code, 3), 2) <> 'N7' OR LEFT(RIGHT(_Code, 3), 2) <>'N8')
It does not work.
I tested
WHERE (LEFT(RIGHT(_Code, 3), 2) <> 'N7' ) and It works.
Why can I not put the N7 and N8 condition next to each other?
Answer : SQL <>
You need to use AND, not OR. One of both conditions is true if the other is false ...
Random Solutions
Can I disable ListView column resizing?
Outlook folders mysteriously missing
How to open document in Flash Drive from Silverlight Application in drive
Windows 2008 certutil -keyrecover fails when I try to recover a key.
max of date
import file lising into Access with VB
another certificate error
the settings for this terminal server cannot be retrieved
SSIS dataflow task could not be created
I notice my windows folders have become very bulky, between 6-20GB! Is there some way to clean them?