日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

数据库数据规范化看不懂_数据库管理系统中的规范化

發布時間:2025/3/11 windows 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 数据库数据规范化看不懂_数据库管理系统中的规范化 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

數據庫數據規范化看不懂

DBMS中的規范化 (Normalization in DBMS)

Every table must have a single idea. The method by which we divide tables approximately is called normalization and the rest used for normalization is a functional dependency. For the normalization process, every column in a table will have a unique name. Order of rows and columns are insignificant and every cell will contain single or atomic values. Every table will contain a primary key and the value of the primary key cannot be null.

每個表都必須有一個主意。 我們大致劃分表的方法稱為規范化,而其余用于規范化的方法則是功能相關性。 對于規范化過程,表中的每一列都將具有唯一的名稱。 行和列的順序無關緊要,每個單元格將包含單個或原子值。 每個表都將包含一個主鍵,并且主鍵的值不能為null。

Because of normalization number of tables in the database increase because of which excess become slow and query retrieval time increases in that cases, we must be in the position to combine decomposed table to get back the parent table. this process is called denormalization.

在這種情況下,由于數據庫中表的規范化數量增加,從而導致多余的速度變慢并且查詢檢索時間增加,因此我們必須處于組合分解表的位置才能返回父表。 此過程稱為非規范化。

DBMS中的規范化表單的類型 (Types of Normalization form in DBMS)

1) First Normalization form

1)第一個規范化表格

A relational schema R is said to be in first normal form if every cell in the row contains atomic values. It means first normal form does not allow composite or multivalued attributes. A table in first normal form will always have exactly one primary key (null value is not allowed in primary key). It always we assumed that if we have a proper relational table than it will always be in first normal form.

如果行中的每個單元格都包含原子值,則關系模式R被稱為第一范式。 這意味著第一個范式不允許使用復合或多值屬性。 第一個標準格式的表將始終僅具有一個主鍵(主鍵中不允許使用空值)。 我們總是假設,如果我們有一個適當的關系表,那么它將始終處于第一范式。

2) Second Normalization form

2)第二標準化表格

A table is said to in second normal form if it is first normal form and there must not be exist any partial dependency.

如果表是第一范式并且不能存在任何部分依賴關系,則稱該表為第二范式。

Partial dependency

部分依賴

If a non-prime attribute instead of depending on the entire candidate key depends on its subset than this is the partial dependency (from prime to non-prime).a attribute is called prime attribute if it is the part of any candidate key.

如果非素數屬性不是部分依賴項(從素數到非素數),而不是依賴于整個候選鍵的子集,那么它是部分依賴項。如果該屬性是任何候選鍵的一部分,則稱為素數屬性。

If a table is not in second normal form than construct first table for the candidate key only those attribute will come which totally depend on the key and then for every partial dependency we have a separate table.

如果一個表不是第二范式,而不是為候選鍵構造第一個表,則只有那些完全依賴于鍵的屬性才會出現,然后對于每個部分依賴項,我們都有一個單獨的表。

3) Third Normalization form

3)第三規范化形式

A relational table is said third normal form when it is in first normal form and there exit no transitive dependency.

當關系表處于第一范式并且不存在傳遞依存關系時,則稱為第三范式。

A relational schema is said to be in third normal form if every dependency from A → B either A is a superkey or a prime attribute.

如果從A→B的每個依賴關系(無論A是超鍵還是素數屬性),則關系模式都稱為第三范式。

Example- R (ABC) B → C

示例-R(ABC)B→C

Here, A is a prime attribute and BC are the non-prime attribute here dependency from B to C is transitive as one non-prime is finding another non-prime. Here if B gets null values at runtime then we cannot identify C.

在這里, A是素數屬性,而BC是非素數屬性,這里從B到C的依賴關系是可傳遞的,因為一個非素數正在找到另一個非素數。 在這里,如果B在運行時獲得空值,則我們無法識別C。

4) Boyce-Codd Normalization form (BCNF)

4)Boyce-Codd規范化表格(BCNF)

A relational table is said to be in BCNF normal form if for dependency from A to B and A must be a super key.

如果從A到B的依賴關系以及A必須是超級鍵,則關系表被稱為BCNF范式。

查找關系的最高范式的步驟 (Steps to find the highest normal form of a relation)

  • First of all, find the entire possible candidate key in the given relation.

    首先,找到給定關系中的所有可能的候選鍵。

  • Divide all given attribute into two categories one is prime and other one is non-prime attributes.

    將所有給定屬性分為兩類,一類是質數,另一類是非質數屬性。

  • Firstly check for the first normal form then second normal form and so on if we fail to satisfy nth normal form than the highest normal form will be n-1.

    首先檢查第一個范式,然后檢查第二個范式,依此類推,如果我們不滿足第n個范式,則最高范式將為n-1。

  • 數據庫管理系統異常 (Anomalies in Database Management System)

    There are different types of anomalies which can occur in referencing and the referenced relation which we will discuss with the help of an example,

    在引用和引用的關系中可能會發生不同類型的異常,我們將借助一個示例來進行討論,

    EnameSsnDnumberDnameDmgrssn
    Smith12345Research3334
    Wong33345Research3334
    Zeloya99984Admin9876
    Wallace98764Admin9876
    Jabbar98794Admin9876
    姓 n 編號 姓名 Dmgrssn
    史密斯 1234 5 研究 3334
    3334 5 研究 3334
    Zeloya 9998 4 管理員 9876
    華萊士 9876 4 管理員 9876
    賈巴爾 9879 4 管理員 9876

    Insertion Anomalies

    插入異常

    If we need to insert a new employee with no department assigned yet, we need to enter null values. We cannot insert a new department with no employees working on it on SSN= null write not be valid, a primary key cannot be null.

    如果需要插入尚未分配部門的新員工,則需要輸入空值。 我們不能插入沒有員工在SSN上工作的新部門=空寫入無效,主鍵不能為空。

    Deletion Anomalies

    刪除異常

    If we delete last working employee of the department, the information regarding department will be lost.

    如果我們刪除部門的最后一名工作人員,則有關部門的信息將丟失。

    Modification anomalies

    修改異常

    If we change the 'depart_mgr' of dept 5 we must update the tuples of all employees who work that department otherwise database will be inconsistent.

    如果我們更改部門5的'depart_mgr',則必須更新在該部門工作的所有員工的元組,否則數據庫將不一致。

    翻譯自: https://www.includehelp.com/dbms/normalization-in-database-management-system.aspx

    數據庫數據規范化看不懂

    總結

    以上是生活随笔為你收集整理的数据库数据规范化看不懂_数据库管理系统中的规范化的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 91麻豆国产 | 视频一区二区三区四区五区 | 精品国产一区二区视频 | 中日韩黄色大片 | a毛片| 日本三级中文字幕在线观看 | 日韩免费一区二区三区 | 伊人久久大香线蕉综合75 | 国产a级黄色片 | 97超碰站 | 自偷自拍亚洲 | 午夜精品一区二 | 毛片在线视频观看 | 免费看毛片的网站 | 欧美性极品少妇xxxx | 日韩电影一区二区在线观看 | 韩国无码av片在线观看网站 | 在线日韩亚洲 | 一级黄色大片在线观看 | 99久久婷婷国产一区二区三区 | 欧美老女人视频 | 日韩成年人视频 | www.男人的天堂.com | 亚洲成人a v| 超碰在97 | 国内黄色一级片 | 综合在线亚洲 | 日韩三级在线免费观看 | 国产精品国产成人国产三级 | 成人av资源网 | 97伊人久久 | 欧美亚洲视频一区 | 国产精品三级久久久久久电影 | 污视频网站在线看 | 无码人妻精品一区二区三区9厂 | 男女高h视频 | 两个女人互添下身爱爱 | 国产亚洲精品女人久久久久久 | 999视频在线| 国内自拍偷拍视频 | 黄网站免费入口 | 日日干日日爽 | 久久久99国产精品免费 | 欧美在线视频一区二区三区 | 欧美一区网站 | 日本人妻丰满熟妇久久久久久 | 亚洲欧美日韩国产 | 久久成人动漫 | 射死你天天日 | 福利综合网 | 美女张开腿流出白浆 | 李华月全部毛片 | 欧美黄色三级视频 | 亚洲精品一区二三区不卡 | 国产高清无遮挡 | 禁网站在线观看免费视频 | 国产亚洲精 | 黄色电影在线视频 | 精品国产精品网麻豆系列 | 中文字幕一区二区不卡 | 国产精品久久久久久影视 | 亚洲美女色视频 | 亚洲一区天堂 | 琪琪色在线观看 | 天天爽夜夜 | 国产美女喷水视频 | 欧美日韩精品二区 | a中文在线| 午夜免费网址 | 欧美另类在线视频 | 涩涩久久 | 婷婷色在线视频 | 国产免费av观看 | 成人美女毛片 | 久久亚洲少妇 | 国产精彩视频在线 | 美女福利在线观看 | 男女黄床上色视频免费的软件 | 午夜特片网 | 97影院 | 老头巨大又粗又长xxxxx | 成年女人毛片 | 午夜日韩电影 | 波多野结衣视频在线 | 村姑电影在线播放免费观看 | 国产午夜精品一区二区三区四区 | 日韩国产欧美在线视频 | 欧美性网站| 天天射天天操天天干 | 丰满护士巨好爽好大乳 | 肉嫁高柳家在线看 | 18被视频免费观看视频 | 97精品视频在线观看 | 国产精品情侣呻吟对白视频 | 日韩女优网站 | av在线免费观看一区 | 久操久 | 他趴在我两腿中间添得好爽在线看 | 亚洲综合中文字幕在线 |