首页 > 编程语言 >Database代做编程辅导:ECS165A Normal Form/BCNF/3NF/4NF

Database代做编程辅导:ECS165A Normal Form/BCNF/3NF/4NF

时间:2022-10-30 15:58:50浏览次数:68  
标签:3NF BCNF Form FDs 4NF relation follow

全文链接:tecdat.cn/?p=29690

Introduction

Normal From是数据库理论里面最恶心的问题,从1NF到6NF,加上BCNF,DKNF以及UF。有运行结果作参考,做这种理论题简直是受罪,每一题都得反复推理。
像下面给出的这个,除了题量大以外,每个问题都是多解问题,拿满分几乎是不可能的事情。

Requirement

1) For this problem you will consider following relation and set of FDs:

R(A,B,C,D,E)
AB → E
B → C
CE → A
AE → D
a) What are the keys of R?
b) Show that the set of FDs is a minimal basis; if it is not a minimal basis, find a minimal basis for the FDs.
c) What are all of the BCNF violations that follow from the FDs? (Don’t just consider the listed FDs, but all that follow).
d) Decompose R into BCNF. For each relation, list the keys, and make sure the set of FDs for each is a minimal basis.
e) What are all of the 3NF violations that follow from the FDs? (Don’t just consider the listed FDs, but all that follow).
f) Decompose R into 3NF. For each relation, list the keys, and make sure the set of FDs for each is a minimal basis.
g) What are all of the 4NF MVD violations that follow from the FDs?
h) Decompose R into 4NF. For each relation, list the keys, FDs and MVD.
i) If you project the relation R onto S(A,B,C) what nontrivial FDs and MVDs hold in S?

2) For this problem you will consider the following relations and FDs:

Courses(C,T,H,R,S,G)
C → T
HR → C
HT → R
HS → R
CS → G
Where C, T, H, R, S, and G are the course, teacher, hour, room, student, and grade respectively. With a proposed decomposition of:
R1(C, T, H)
R2(C, H, R, G)
R3(C, R, S)
a) Use the chase test to prove/disprove that holds HS → G in Courses.
b) Use the chase test to prove/disprove that holds THR → S in Courses.
c) Use the chase test to prove/disprove the proposed decomposition has a lossless join.
d) Decompose Courses into 3NF.
e) Which of your relations in 3NF are not in BCNF?
f) Which of your relations in 3NF are not in 4NF?

3) Design an academic genealogy database with one entity set: Academics.

Consider academics with doctoral degrees only. The information to record about academics includes their name, discipline, year of graduation, institution, dissertation title, dissertation chair, dissertation committee members (assume two others distinct from chair), and academic progeny.

Summary

最后还是想说一下,这样的多个解的作业真的相当恶心,做的时候需要反复推导,查阅各种资料来证明,而且第二个问的chase test完全就是slides里面的方法,学习理解也花了不少时间。

标签:3NF,BCNF,Form,FDs,4NF,relation,follow
From: https://www.cnblogs.com/tecdat/p/16841426.html

相关文章

  • 解压文件时报错gzip: stdin:not in gzip format
     tar-vxfjexus-5.8.2-x64.tar.gzgzip:stdin:notingzipformattar:Childreturnedstatus1tar:Errorisnotrecoverable:exitingnow查询 原因:filejexus-5.8.2......
  • Winform 桌面程序界面设计篇
    目录​​1.仿Office版本界面设计:​​​​2.系统常规设计界面:​​​​3.仿360电脑管家界面设计:​​1.仿Office版本界面设计:本设计风格源码下载2.系统常规设计界面:3.仿......
  • winform日历控件
     分享一个漂亮的winform自定义控件,做考勤、日程管理、计划最好的自定义控件了,能够添加备注等等。......
  • 云原生之旅 - 4)基础设施即代码 使用 Terraform 创建 Kubernetes
    前言上一篇文章我们已经简单的入门Terraform,本篇介绍如何使用Terraform在GCP和AWS创建Kubernetes资源。Kubernetes在云原生时代的重要性不言而喻,等于这个时代的操作......
  • 解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launch
    解决SpringBoot测试提示Failedtoresolveorg.junit.platform:junit-platform-launcher:1.5.2解决方案:只需要添加:junit-platform-launcher依赖即可<dependency>......
  • flask之wtforms
    简介WTForms是一个支持多个web框架的form组件,主要用于对用户请求数据进行验证。安装:pip3installwtforms==2.3.3用户登录注册示例1.用户登录当用户登录时候,需要......
  • Terraform 语法 变量的使用
    变量分为两种类型,一种为输入变量,另外一种为输出变量。之前在写tf的模板文件的时候用了很多变量,比如在写认证信息的时候,定义的变量存放了阿里云的ak和sk,最后就是region的信息......
  • Terraform 语法 resource(1)
    resource是我们的资源,一般在terraform里面定义的都是资源,是个非常重要的角色。关键字resource+资源类型(比如dns,ecs,vpc,交换机)+资源的名称。模块下资源的名称要保证唯一,不要冲......
  • Terraform 语法 provider插件
     语法是terraform最重要的一点,有两个部分来讲解,第一部分是基础,第二部分是更加高级的扩展。后面各种实践其实就是对terraform语法编写。第一部分是provider插件,provider提供......
  • Terraform DataSource 数据源
    有些时候在创建资源的时候,会用到一些数据,比如在创建ecs的时候,我可能会用到一些镜像。这个我们可以去浏览云供应商提供的文档去查询,其实我们也可以通过provider来拿到。provi......