Example Table (Person_data)
Name | Area | Id
===============================
Jack | A_102 | 102
Roy | Abc-34 | 109
tom | ABC6778 | 107
Aly | hj23 | 122
Saly | dsfds | 342
I need a query such that it returns all the rows where Area column doesn't contain _
or -
or Abc
or ABC
.
My query
Select * from Person_data
where area not like '%-%'
or area not like '%_%'
or area not like '%Abc%'
or area not like '%ABC%';