2
I have two tables, table A and table B, each with a column called text. Both tables have equal records to some extent, up to the character '='. What I want to do is a SELECT of all records in table A where the records up to the character '=' of it are equal to the records up to the character '=' of table B. I tried this here, only it gives problem of subquery only being 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);