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
MoveWindow causes Flicker
Autopopulate 2 fields on the same form from same table
Change your displayed email address in hotmail
Imput Mask for Date ?
SET PATH TO and Config.FPW
ASP.NET 2.0 web app referencing adodb and adodb.net
Using Goal Seek Function in Access
Query asking for an Expr1 as a PArameter
Grammar Checker for Access 2000
add image to Newsflash module layout in Joomla template