oracle中dbms

功能依赖 (Functional Dependency)

A relational Database management System (RDBMS) represents the database o a collection of relations/tables. A functional dependency is a constraint between two sets of attributes in a relation. It is the property of semantics or meaning of attribute. Functional dependency is also a property of relational schema "R" and not a particular legal relation "r" of "R".

关系数据库管理系统(RDBMS)代表数据库是关系/表的集合。 功能依赖性是关系中两组属性之间的约束。 它是语义的属性或属性的含义。 功能依赖性也是关系模式“ R”的属性,而不是“ R”的特定法律关系“ r”

Now let us consider, a relational "a" schema "R" and let "x" and "y" be the two set of attributes, now there is a functional dependency from "x" to "y"

现在让我们考虑一个关系“ a”模式“ R”,并让“ x”和“ y”成为两组属性,现在存在一个从“ x”到“ y”的功能依赖关系。

If, t1[x] = t2[x] then, t1[y] = t2[y]

如果t1 [x] = t2 [x],t1 [y] = t2 [y]

Here, "x" is the determinant and "y" is the dependent or "x" determines "y".

在此 ,“ x”是行列式,“ y”是从属项,“ x”确定“ y”。

  • Some functional dependency is directly visible in relational model but some either set of dependencies also hold good which are not directly visible.

    一些功能依赖关系在关系模型中是直接可见的,但是某些依赖关系集也可以保持良好状态,而不能直接看到。

  • The entire set of functional dependency is called as complete set.

    整个功能依赖性集称为完整集。

  • Therefore, we must know how to calculate closure set of functional dependencies before Normalization.

    因此,我们必须知道如何在归一化之前计算函数依赖的闭包集。

  • A functional dependency from "A" to "B" is said to be trivial if "B" is a subset of "A".

    如果“ B”是“ A”的子集,则从“ A”到“ B”的功能依赖关系被认为是微不足道的。

Example: In the corresponding relation,

示例:在对应关系中,

    Tuple   A       C
t1      a1      c1
t2      a1      c1
t3      a2      c2
t3      a2      c2
t4      a3      c3
t5      a3      c2
A → C holds as
t1[A] = t2[A] then t1[C] = t2[C]
t3[A] = t3[A] then t3[C] = t4[C]
but, C → A does not holds as.
t3[C] = t4[C] = t3[C] but t3[A] = t4[A] does not equal t5[A].
.minHeight{ min-height: 250px; } @media (min-width: 1025px){ .minHeight{ min-height: 90px; } } .minHeight{ min-height: 250px; } @media (min-width: 1025px){ .minHeight{ min-height: 90px; } }

如何查找功能依赖项有效还是无效? (How to find whether a functional Dependency is valid or invalid?)

There are some steps to find whether a functional dependency is valid or invalid:

有一些步骤可以确定功能依赖项是有效的还是无效的

Step 1) Check if all the values of "A" are distinct than it is valid otherwise invalid.

步骤1)检查“ A”的所有值是否均不同,否则有效。

Step 2) Check if all the values of the "B" are same than the functional dependency is also valid.

步骤2)检查“ B”的所有值是否均与功能依赖项相同是否有效。

Step 3) Otherwise we have to find at least one value of "A" on which are having different values of "B" than the functional dependency is invalid.

步骤3)否则,我们必须找到至少一个值“ A”,在该值上具有不同于功能依赖项无效的“ B”值。

属性关闭 (Attribute Closure)

The set "A*" is said to be the closure set of "A" if the set of attributes are functionally dependent on the attributes of "A"

如果属性集在功能上取决于“ A”的属性,则将集合“ A *”称为“ A”的闭包集合。

一些计算封闭集的推理规则 (Some inference rules to calculate the closure set)

  1. Reflexive rule: A rule is said to be reflexive if B is a subset of a then A → B. This is called trivial functional dependency rule.

    自反规则:如果B是A→B的子集,则规则说是自反的。这称为琐碎功能依赖规则。

  2. Augmentation rule: A rule is said to be augmented if A → B then Ar → Br holds good.

    增强规则:如果A→B然后Ar→Br保持良好,则可以说是增强规则。

  3. Transitive rule: A rule is said to be transitive if A → B, B → r then A → r.

    传递规则:如果A→B,B→r然后是A→r,则称为传递规则

These three rules are functionally complete and known as RAT rule or RAT axioms and also called Armstrong rule which means only theses rules are sufficient enough to find closure set.

这三个规则在功能上是完整的,称为RAT规则或RAT公理,也称为Armstrong规则,这意味着仅这些规则足以找到闭合集。

4) Union rule

4)联盟规则

A rule is said to be union if A → B, B → r then A → Br also holds good.

如果A→B,B→r那么A→Br也成立,则规则称为并集。

  1. Decomposition rule: A rule is said to be decomposed if A → Br, A → B then A → r.

    分解规则:如果A→Br,A→B然后A→r,则称为分解规则

  2. Pseudo transitivity rule: If A → B and BW → r then WA → r.

    伪传递性规则:如果A→B和BW→r,则WA→r。

翻译自: https://www.includehelp.com/dbms/functional-dependency-and-attribute-closure.aspx

oracle中dbms

oracle中dbms_DBMS中的功能依赖性和属性关闭相关推荐

  1. oracle中dbms_DBMS中的关系演算

    oracle中dbms Relational calculus uses variable, the formula for state and it has the same expressive ...

  2. oracle中dbms_DBMS中的实例和架构

    oracle中dbms 1)实例 (1) Instances) What is the Instance? If we look towards it in real life, we refer i ...

  3. rowbounds分页oracle,Oracle使用MyBatis中RowBounds实现分页查询功能

    Oracle中分页查询因为存在伪列rownum,sql语句写起来较为复杂,现在介绍一种通过使用MyBatis中的RowBounds进行分页查询,非常方便. 使用MyBatis中的RowBounds进行 ...

  4. oracle sql字符拆分字符串函数,oracle-是否有在PL / SQL中拆分字符串的功能?

    oracle-是否有在PL / SQL中拆分字符串的功能? 我需要编写一个过程来规范具有由一个字符连接的多个令牌的记录. 我需要获得这些令牌来分割字符串,并将每个令牌作为新记录插入表中. Oracle ...

  5. oracle里有limit怎么用,[ORACLE]ORACLE 实现mysql中的limit 功能

    [ORACLE]ORACLE 实现mysql中的limit 功能 项目从mysql迁移到ORACLE中遇到移植问题,mysql中支持limit 而ORACLE say no . 解决方法 利用ORAC ...

  6. Java平台,标准版Oracle JDK 9中的新功能

    Java平台,标准版 Oracle JDK 9中的新增功能 版本9 E77563-05 2017年9月 JDK 9中的新功能概述 Java Platform,Standard Edition 9是一个 ...

  7. mysql中sql语句中常见的group_concat()函数意思以及用法,oracle中与其一样的功能函数是wmsys.wm_concat()

    1.group_concat(),手册上说明:该函数返回带有来自一个组的连接的非NULL值的字符串结果.比较抽象,难以理解. 通俗点理解,其实是这样的:group_concat()会计算哪些行属于同一 ...

  8. oracle中闪回和回滚,Oracle Flashback 闪回查询功能9i和10g的区别

    Oracle从9i开始提供了基于回滚段的闪回查询(Flashback Query)功能,可用于恢复错误的DML操作.在Oracle 10g中对闪回查询做了较大改进,不再局限于闪回查询,还可用于恢复错误 ...

  9. mysql execute immediate_PostgreSQL中function中实现类似Oracle的execute immediate的功能

    PostgreSQL中function中实现类似Oracle的execute immediate和dbms_output_putline的功能 首先需要说明的是,PostgreSQL中没有像Oracl ...

最新文章

  1. 【ReactiveX】基于Golang pmlpml/RxGo程序包的二次开发
  2. 生物,AI,心理:目前的大脑/认知/意识/AGI/DRL模型
  3. 全球及中国甲苯二异氰酸酯预聚物行业投资状况与前景建议研究报告2022版
  4. SQL with(nolock)详解
  5. C语言 · 黑色星期五
  6. 通过asm动态构造class文件
  7. The DotNet Garbage Collection
  8. 什么叫0day和Warez?
  9. sagemath matlab,开源跨平台数学软件SageMath v8.1
  10. 基于Java的进销存管理系统 附:源码课件
  11. journalctl工具基础介绍
  12. 四旋翼无人机飞控系统设计(闭环控制系统)
  13. android长度测量工具,手机测量长度软件
  14. Laravel文档阅读笔记-Rendering JSON(对JS变量进行赋值)
  15. php不能撤销,word无法撤销怎么解决
  16. jsp+servelt+mysql+tomcat 四六级单词查询系统
  17. c#获取当前日期时间
  18. 适合64位系统的c语言编辑器,wintc 32/64位软件下载
  19. 【数学 博弈论】JZOJ_3339 wyl8899和法法塔的游戏
  20. ubuntu--ogv格式转mp4格式

热门文章

  1. c语言程序中return的作用,单片机C语言程序中return dat 什么意思
  2. gatewayproperties 是空_杨丞琳演唱会踩空,从二楼高台掉到一楼,手脚擦伤,引发网友热议...
  3. php整站防注入程序,php通用防注入程序 推荐
  4. docker卸载 windows版本_DevOps系列 006 - Docker安装
  5. java jive歌词_Java Jive_Manhattan Transfer with Phil Collins_高音质在线试听_Java Jive歌词|歌曲下载_酷狗音乐...
  6. python打出由边框包围的_python opencv 图像边框(填充)添加及图像混合的实现方法(末尾实现类似幻灯片渐变的效果)...
  7. mqtt php 16进制数据,phpMQTT 内存耗死问题
  8. php中的缓,php中的缓存机制解释
  9. UnicodeEncodeError: 'gbk' codec can't encode character '\xeb' in position 20: illegal multibyte sequ
  10. Oracle GoldenGate经典架构