I want to write a SQL query that only returns "Item" from the database only if a strict condition is met. Effectively I want to say "Get Item only if MyValue is never between 6 and 9.
 Item | MyValue
   1  |  3
   1  |  6
   1  |  9
   1  |  12
   2  |  1
   2  |  4
   3  |  3
   3  |  6
   3  |  9
I've come up with:
  SELECT * FROM data WHERE(MyValue NOT BETWEEN 6 and 9)
but that gets me this:
   1  |  3
   1  |  12
   2  |  1
   2  |  4
   3  |  3
Where as the goal is to simply obtain this:
 Item |
   2  |
I hope this makes sense. Any help would be appreciated.
                        
Try this instead: