0
我有一個realtional數據庫我放在一起,在這裏我的大部分成員的幫助下完成..謝謝大家。但是我堅持如何做最後一部分。結構問題
其用於跟蹤手機內部銷售。
所以每個客戶可以有多個訂單 每個訂單可以有多個行 每一行都有連接到它 每行可以有多個插件(熱點服務,insurnace等)
我把一切都做了,除了一個計劃我有多個插件服務的問題。
我有以下結構
ID_Key
Phone-Num
Customer_FK (Foreign Key to customer table)
Plan_FK (Foreign key to Plan Type Table)
Serial_Number
Order_FK (Foreign Key to Order_Details Table)
我當時想在另一個領域加入名爲
Service_FK (Foreign Key to a table that is made up of the following)
TblServiceOrder
SeriviceID (References TblServiceType)
LineID (references ID_KEY from TBl Lines)
的TBL服務類型是TBL線一個表只有
ID (Primary Key)
Description
例如, - > ID 132 - >保險 ID 133 - >熱點
我正走向正確的道路嗎?
我會希望能夠得到每個訂單的詳細信息報告。例如
Customer:1234 Orders 2 Lines,Line 1 have plan 103,Line 2 have plan 104. Line 1 has Insruance and has a hotpot added,Line 2 just have insurance。
感謝所有幫助
帕特
感謝丹,對不起,我已經拿出了,但忘了更新帖子..但你認爲我在正確的道路上? – 2011-02-19 19:26:00