如何從四個表中提取數據?從四個表中提取數據
我有四個表:
- Article_Table(
ArticleName, ArticleNumber
) - IndexDetails_Table(
IndexSubMasterId, ArticleNumber
) - IndexSubMaster_Table(
IndexSubMasterId, IndexMasterId
) - IndexMaster_Table(
IndexMasterId, Keyword
)
我需要最終輸出:
ArticleName from Article table.
我將爲您提供一個Keyword
作爲輸入參數。
,我需要將過程:
IndexMasterId From IndexMaster_Table where Keyword = 'bl'
IndexSubMasterId From IndexSubMaster_Table
Where IndexSubMaster_Table.IndexMasterId = IndexMaster_Table.IndexMasterIdArticleNumber From IndexDetails_Table Where IndexDetails_Table.IndexSubMasterId = IndexSubMaster_Table.IndexSubMasterId
ArticleName From Article_Table
Where Article_Table.ArticleNumber = IndexDetails_Table.ArticleNumber
這是關係到iPhone?我不這麼認爲 – TheTiger 2012-08-08 12:05:26
這與iPhone無關。抱歉!!!! – 2012-08-08 12:08:21
感謝marc_s進行編輯。 – 2012-08-08 12:30:19