我有 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等等...
请帮帮我....请