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
Post a Comment