CSI2132: Databases IAssignment

QQ: 942371102

Exercise 1 (30%)

Consider the table below showing a sample dentist/patient appointment data. A patient is given an appointment at a specific time and date with a dentist located at a particular surgery. On each day of patient appointments, a dentist is allocated to a specific surgery for that day.

a) (10%) Provide examples of insertion, deletion, and update anomalies

b) (10%) Identify the functional dependencies represented by the attributes shown in the table. State any assumptions you make about the data and the attributes shown in this table

c) (10%) Describe and illustrate the process of normalizing the table to 3NF relations. Identify the primary, alternate, and foreign keys in your 3NF relations

 Exercise 2 (30%)

Consider the schema R = (B, O, I, S, Q, D) and the set F of functional dependencies: F = {S → D, I →B, IS → Q, B → O}

a) (5%) Provide a list of all candidate keys.

b) (10%) Find the canonical cover for F, along with an explanation of the steps you took to generate it.

c) (10%) Use the 3NF decomposition algorithm to generate a 3NF decomposition of R, and show all the necessary steps.

d) (5%) Are any of the relations in BCNF or not?

Exercise 3 (40%)

Consider the schema R = (A, B, C, D, E, G) and the set of FDs: F = {A → BC, BD → E, AD → E, CD → AB}

a) (10%) Find a nontrivial functional dependency containing no extraneous attributes that is logically implied by the above dependencies and explain how you found it.

b) (10%) Find all candidate keys of R.

c) (10%) Use the BCNF decomposition algorithm to find a BCNF decomposition of R. Start with A → BC. Explain your steps.

d) (5%) For your decomposition, state whether it is lossless and explain why. e) (5%) For your decomposition, state whether it is dependency preserving and explain why.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lee1xf520

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值