I have two tables, table A and table B, each with a column called text . Both tables have equal records up to a point, up to the character ' = '. What I want to do is SELECT all of the records in table A where the records up to the '=' character of it are the same as the records up to the '=' character of table B. I tried this here, but it only gives subquery problem only to be able to return a value.
SELECT texto FROM A
WHERE (SELECT LEFT(texto, POSITION("=" IN texto)) FROM A) = (SELECT LEFT(texto, POSITION("=" IN texto)) FROM B);