私は5つのテーブルを持っています
Village

T1_Master (Village_ID is a foreign key)

T2_Master (Village_ID is a foreign key)

T1_Details (t1_id is a foreign key) & (month,year,t1_id are combination of primary key(複合キー))

T2_Details (t2_id is a foreign key) & (month,year,t2_id are combination of primary key(複合キー))

ここでレコードを取得したい場合village_ID = 01, month=03 and year=2013
出力は次のようになります

here t1_1(No) = t1_1 has no record for month=03 and year=2013
Like wise t2_1(Yes) = t2_1 has record for month=03 and year=2013等々...
助けてください....お願いします