for computing centralized join on 2 tables