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
Simple (I think) but Urgent: Copy (XCopy?) files from multiple subdirectories into one directory
SQL Report Sort
Windows 7 32 bit vs 64 bit
GridView-FormView Master-Detail Setup (Programmatic Solution)
Unzip zip files in folder and subfolders recursively
I have a usb cash drawer need to make a com1
count total lines or "returns" from a string of text
Looping a range...
Hyper-V RAID Recommendations
Disable menu items on switchboard