In BigQuery, what's the most efficient way (from performance standpoint) to complete the following task?
Objective: Select rows from table_a that match with US-based rows in table_b.
I see at least three different ways to go about this task.
1) Using a subquery to filter
SELECT * FROM table_a
JOIN (select * from table_b where country='US') table_b
ON table_a.userid = table_b.userid
2) Using join clauses to filter
SELECT * FROM table_a
JOIN table_b
ON table_a.userid = table_b.userid
AND table_b.country='US'
3) Adding where clause at end
SELECT * FROM table_a
JOIN table_b
ON table_a.userid = table_b.userid
WHERE table_b.country='US'