I have a column like:
Values |
---|
111.111.111-Dummy |
111.111.111-Dummy2 |
111.111.111-X |
222.222.222-Dummy |
222.222.222-Dummy2 |
333.333.333-Dummy |
333.333.333-Dummy2 |
333.333.333-X |
I need to find the numbers that do not have an entry with "-X" in the end. So in this scenario the query should show: 222.222.222. My idea so far was to first trim the results to only have the numbers part (or everything before the '-') But I don't know what to do next. How can I find entries that don't match in the same column and same table?