I need to select items in a table when they match the following criteria:
1/2 TON TRCK W/TOOLS (A) or 1/2 TON TRCK W/TOOLS (B)
But DOES NOT MATCH 3/4-1 TON TRUCK W/TOOLS or any other combination.
I've tried using wildcards.
Select *
FROM Table
WHERE UNIT_ID LIKE '1/2 TON TRCK W/TOOLS (A)'
This does not work. The only thing that seems to work is using '%Tools'. Unfortunately this pulls in other records that I do not want.
I've also tried using REGEX
WHERE regexp_like (unit_id, ' ^ (1/2 TON TRCK W/TOOLS) ')