I try to solve this error for hours without any luck, its on request, which I ran for several weeks without problems, but suddenly I see this error:
Error: the ON clause must be AND = matching one field name from each table with all field names with a table name prefix.
The request is formatted as follows:
SELECT S.av AS av, S.dm AS dm, t, gn FROM [dataset.cTable] JOIN EACH (SELECT id, av, dm FROM [dataset.sTable]) AS S ON S.id = sid AND (t == 'type1' OR t == 'type2') GROUP EACH BY av, dm, t, gn;
Any help would be greatly appreciated.
source share