I want to exclude an entry in my table, but it does not work logically. Here is my table Weapons
:
Name / DPS / Style
Noxious Bow / 1000 / Range
Chaotic Staff / 800 / Magic
Armadyl Crossbow / 750 / Range
Saradomin Godsword / 600 / Melee
Dragon Longsword / 600 / Magic
Dragon Longsword / 550 / Melee
Elder Shortbow / 500 / Range
What I'm trying to do is exclude a record Dragon Longsword
that has Style
of Melee
.
Here is what I tried:
SELECT *
FROM Weapons
Where Name!='Dragon Longsword' AND Style!='Melee';
What happens is that it does not display a record containing Dragon Longsword
or Melee
. I want it to not display only the following entry:
Dragon Longsword / 550 / Melee
source
share