sql - Error when using 2 (NOT LIKE) wildcards -


i can't seem figure out why code isn't printing out right information.

select firstname customer firstname not "p%" or firstname not "t%"; 

the table not show names starting on p or t if remove 1 of conditions (p or t), , table show names starting p or t if change "not like" "like" on both. moment use 2 "not like" conditions shows names, , neither of not conditions execute.

you need use , instead of or. not p or not t true everything; because 1 of statements true. want them both true, need and.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -