I want to partition my 2 tables which are table1(a1,b1) and table2(a2,b2), where a1 and a2 are primary keys of the two tables. So what should be the best strategy for partitioning these two table to support the query:
SELECT * FROM table1, table2 WHERE table1.a1 = table2.a2
ADDITIONAL INFO
And based on that partitioning strategy, I would also want to decide which join can be used to efficiently run the following query:
SELECT * FROM table1, table2 WHERE table1.a1 = table2.b2
I would use Inner Join:
More Info: http://www.w3schools.com/sql/sql_join.asp