I am trying to join 2 tables via 2 columns however, the left tables has entity values after them that I want to discard and they always start with (. Example: 1256390(1) or 23452(9), I need to disregard the (1) and (9)
Code Below
SELECT
A.Case_ID
A.Entity_ID
B.Entity_ID
B.Source
FROM Case_Table A
LEFT JOIN Source_Table B
ON A.Entity_ID = B.Entity_ID
WHERE B.Source = 'Internal';
Nothing that I have tried works to this point.
2
Answers
fiddle