Answer the question
In order to leave comments, you need to log in
SQL: Like and NOT LIKE?
Standard task: in the Product table, find models that consist only of numbers or only of Latin letters (AZ, case insensitive).
Output: model number, model type.
Correct answer:
SELECT model, type FROM Product
WHERE model NOT like '%[^0-9]%' OR upper(model) NOT like '%[^A-Z]%'
Answer the question
In order to leave comments, you need to log in
LIKE doesn't work with regular expressions. This is your mistake
Just show the client examples of great sites from his competitors.
Can you solve some customer problems by creating a personal website or just want to make money on them?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question