檢索多個表的數據,我有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
(複合鍵))
現在,如果我要重新trieve的記錄,其中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
等等...
plz幫助我.... PLZ
請出示您嘗試編寫查詢。 –