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
Batch at boot before login: Scheduled taks does not work for local login on domain-PCs
Active Directory Move & Upgrade
Am trying to get a MAS90 VI Job to run from WinExec(). Runs fine from command prompt, but not from WinExec().
Login - Username and Password
WCF and basicHttp Error
How to convert Delphi SHL/SHR code to MS SQL
how to highlight the current row in Access 2007 split form datasheet
Corrupt Excel file - unable to recover from all machines
Missing Drafts Folder
Vista download fails with 0x80070718 error message