I need to retrieve all records in a table where employeeid starts with a specific string excluding the records with a particular string anywhere in the id.
For example, below is my table data.
EmployeeID Name
AA5TRS31 XXXX
AA5h1234 yyyyy
AA5g5688 zzzz
AA5TRS33 dahg
I need records where EmployeeID starts with ‘AA5’ but does not contain ‘TRS’ using REGEXP_LIKE