I'm trying to update a table in bigquery, using standardSQL but get the following error: Query error: Cannot execute IN subquery with uncomparable types STRING and INT64 at [81:7]
In essence, I have two tables. Table(a) and table(b). I am trying to update a column (boolean column) in table(b) when a particular record (flight_number) is found in table(b) and not in table(a).
UPDATE `HTZ_Analysis.airport_flightrecord` as tableb
SET table(b).In_Airport = False
WHERE table(b).flight_number NOT IN (SELECT 1
FROM table(a)
)