logo资料库

为车辆保险公司构建一个ER.docx

第1页 / 共2页
第2页 / 共2页
资料共2页,全文预览结束
2、为车辆保险公司构建一个 ER 图,并将其转换为关系模型。它 的每个客户有一辆或多辆车,有些车没发生事故,而有些车发生 多次事故。每张保险单(policy)为一辆或多辆车提供保险,并对 应一个或多个保费支付(premium_payment)(比如说,某位车主买 了 100 万的第三方责任险,这里的 100 万就是保费支付)。每个保 费支付只会针对特定的一段时间,具有到期日和缴费日。 Custormer(custormerID,custormerName,custormerAddress,pho ne) Situation(Time,situationID,carID,situationPlace) Policy(policyID, Time Foreign key carID references Car, Foreign key CustomerID references Customer, Foreign key situationID references Situation) Premium_payment(payday,lastDay,payNum
Foreign key policyID references Policy) Car(carID Foreign key customorID references Customer, Foreign key policyID references Policy)
分享到:
收藏