关于EER model(实体关系模型图)高人请教!

hongxin887 2011-08-09 05:13:53
现在初学基础数据库的EER模型图,有一小问题搞乱了我!

客户可以在银行开启账户,这里有不同的类型的账户(savings, checking, credit and loan accounts)
客户可以办理银行业务(取款和存钱)

取款业务只能在savings, checking accounts 上面办理,但是不能在credit and loan accounts 做取款的业务!
每次办理取款业务必须记录办理的方式 如(银行出纳员,ATM取款机,或者电子交易)
ATM取款机有属于它自己的id 和地址

存钱的业务可以通过银行出纳员(可以存现金或者支票) 或者通过电子交易方式
如果客户存的是支票, 那么数据库必须记录支票的信息(unique cheque number, the bank that issued the cheque, the name on the cheque, date and amount)


因为这里我想用到弱实体的子类,可以我不知道能不能用。。怎么用?
还有我有个问题:我知道弱实体可以做为父类,可以有他的子类,
但是我想知道弱实体的子类可以跟强实体(一般的实体)建立关系吗?
我看的是英文的题目需要做一个关于银行的EER模型图,这只是其中一小段的描述
这是我自己翻译的。

原英文段落如下:
There are several types of accounts: savings, checking, credit and loan accounts. Each account has a unique number. The bank maintains a record of each account’s opening day, type, balance and also information about all transactions. For each customer associated with an account, the database should also store the user name for internet access and the chosen password (if appropriate). For each transaction (such as withdrawal or deposit), the database should store the date and time, the amount and the type of transaction. Withdrawals are available from checking and savings accounts, but not from credit cards or loans. For each withdrawal, it is necessary to store the manner in which the withdrawal was made (e.g. teller, ATM machine, or electronic transaction). Each ATM machine has a unique id and location. A deposit can be made via a teller (by cash or cheque) or electronically. If a customer has deposited a cheque, the database should store information about the cheque (unique cheque number, the bank that issued the cheque, the name on the cheque, date and amount).

希望有人对EER模型比较在行的给我讲解一下,我有点搞乱了。。。

还有我有个问题:我知道弱实体可以做为父类,可以有他的子类,
但是我想知道弱实体的子类可以跟强实体(一般的实体)建立关系吗?
...全文
845 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
rengangkele 2012-09-25
  • 打赏
  • 举报
回复
推荐你看本书 modern database management 10e第三章, 顺便问你 你是用什么软件画图,弱实体如何用软件画出来
hongxin887 2011-08-10
  • 打赏
  • 举报
回复
难道就没有人学实体关系模型图吗???
EER MODEL啊!!!!!
没人会画吗
hongxin887 2011-08-10
  • 打赏
  • 举报
回复
难道就没有人学实体关系模型图吗???
  • 打赏
  • 举报
回复
恩 很 概念
hongxin887 2011-08-09
  • 打赏
  • 举报
回复
难道就没有人学实体关系模型图吗???
EER MODEL啊!!!!!
没人会画吗
rucypli 2011-08-09
  • 打赏
  • 举报
回复
太概念的东西完全不懂

2,209

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 其他数据库
社区管理员
  • 其他数据库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧