bcnf范式

Jun 07, 2016 pm 04:04 PM
what is paradigm

3.5范式——bcnf范式到底是什么呢? 对于bcnf范式,通过查阅资料,我的理解是——主键依赖的去除。比如说:一个仓库管理的表,有以下属性(管理员编号,仓库号,货物编号,货物数量)其中每个管理员管理一个仓库,那么就会出现这样的情况: 1.仓库号和货物编

3.5范式——bcnf范式到底是什么呢?

对于bcnf范式,通过查阅资料,我的理解是——主键依赖的去除。比如说:一个仓库管理的表格,有以下属性(管理员编号,仓库号,货物编号,货物数量)其中每个管理员管理一个仓库,那么就会出现这样的情况:

1.仓库号和货物编号可以确定货物数量,仓库号和货物编号可以确定管理员编号。

\

2.管理员编号和货物编号可以确定仓库号,管理员编号和货物编号可以确定货物数量。

\

3.仓库号可以确定管理员编号。

\

喎?http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcD4KPHA+PGVtPjQuPC9lbT653MDt1LGx4LrFv8nS1Mi3tqiy1r/iusWhozwvcD4KPHA+PGltZyBzcmM9"http://www.2cto.com/uploadfile/Collfiles/20141013/2014101309164360.jpg" alt="\">

其中,仓库号、管理员编号和货物编号都是主属性,数量是非主属性,它们的关系符合三范式。但是它不是bcnf,因为在主属性中,仓库号可以推出管理员编号,管理员编号可以推出仓库号。他们之间存在传递依赖。这是不符合bcnf的。

做法是,把表格拆分,得到如下结果:表一(仓库号,管理员编号);表二(管理员编号,货物编号,数量)。

但是,有的bcnf范式会导致关系的丢失。比如:有个表示工厂工人计件的表格(车间号,工人编号,零件号,数量)其中的关系是:

1. 一个工人只能在一个车间工作,一个车间有多名工人。

\

2. 一个工人生产多种零件,一个车间内的零件没有重复。

\\

其中,车间号、工人工号和零件号都是主属性,数量是非主属性,它们的关系符合三范式。但是“车间号”+ “零件号”可以推出“工人工号”然后“工人工号”可以推出“车间号”,他们主属性之间有传递依赖,这样的话是不符合bcnf范式的。

分解的办法是:将表格拆分成两个表格——表一(职工号,零件号,数量);表二(职工号,车间号)。这样分解会将“车间号+零件号”推出“工人工号”的关系丢失。


3.5范式已经搞定,接下来就是第四范式。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What kind of process is ccsvchst.exe? What kind of process is ccsvchst.exe? Feb 19, 2024 pm 11:33 PM

ccsvchst.exe is a common process file that is part of the Symantec Endpoint Protection (SEP) software, and SEP is an endpoint protection solution developed by the well-known network security company Symantec. As part of the software, ccsvchst.exe is responsible for managing and monitoring SEP-related processes. First, let’s take a look at SymantecEndpointProtection(

What is a dual-core browser? What is a dual-core browser? Feb 20, 2024 am 08:22 AM

Dual-core browser is a browser software that integrates two different browser cores. The kernel is the core part of the browser, responsible for rendering web content and executing web scripts and other functions. Traditional browsers generally use only a single kernel, such as IE browser using Trident kernel, Chrome browser using WebKit/Blink kernel, Firefox browser using Gecko kernel, etc. The dual-core browser integrates two different cores into one browser, and users can freely switch between them as needed. The emergence of dual-core browsers

What is a CPU? What does a CPU contain? What is a CPU? What does a CPU contain? Feb 22, 2024 pm 05:55 PM

cpu is the central processing unit. Analysis 1 The central processing unit [CPU, Central Processing Unit] is a very large-scale integrated circuit, which is the computing core and control core of a computer. Its main function is to interpret computer instructions and process data information in computer software. Supplement: What does the CPU include? 1 The CPU includes computational thinking components, register components, control components, etc. The computational thinking component can perform specified address or floating-point arithmetic operations, shift operations and thinking operations, and can also perform address calculations and conversions. Summary/Notes CPU mainly explains computer instructions and processes data information in computer software.

What is ALICE coin? What is ALICE coin? Feb 23, 2024 am 09:28 AM

What is ALICE coin? ALICE coin is a digital cryptocurrency inspired by the English word "ALICE", which symbolizes the unique creativity and imagination of the creator. As a virtual currency based on blockchain technology, ALICE currency aims to provide users with a safe, convenient and privacy-protected transaction environment. Application of Blockchain Technology In order to achieve the recording and verification of transactions, ALICE currency uses blockchain technology. Blockchain is a distributed database that links transaction information together in chronological order to form an immutable chain. This technology greatly improves the security of transaction information, while also eliminating the need for trust in third-party institutions and reducing transaction costs. Due to the decentralized nature of blockchain, transaction participants can

What is WEB coin Webchain? What is WEB coin Webchain? Feb 21, 2024 pm 06:28 PM

What are Webcoin and Webchain? Webcoin and Webchain are two closely related cryptocurrency projects that aim to provide global users with a secure and anonymous digital currency trading experience. Webcoin is a cryptocurrency based on blockchain technology, and Webchain is the underlying blockchain platform that supports the operation of Webcoin. The combination of these two projects enables users to conduct efficient and secure digital currency transactions with guaranteed anonymity. WebcoinWebcoin is a decentralized digital currency using blockchain technology, aiming to provide a safe and efficient trading environment for global users. Its open source design makes transaction recording and verification more transparent and reliable. W

What is the brand of the fan on the right side of ASUS Tianxuan 1? (The fan on the right side of ASUS Tianxuan 1 stops running) What is the brand of the fan on the right side of ASUS Tianxuan 1? (The fan on the right side of ASUS Tianxuan 1 stops running) Jan 05, 2024 pm 11:54 PM

What is the fan on the right side of ASUS Tianxuan 1? The fan of the graphics card is a common hardware device used to dissipate heat and maintain the stable operation of the graphics card. It's usually powered by a small electric motor, which uses rotating blades to push hot air out of the area around the graphics card. The role of graphics card fans is very important, especially in high-performance computing and gaming. The graphics card generates a lot of heat during operation. Without an effective cooling system, the graphics card may overheat and cause performance degradation or even damage. In order to keep the temperature of the graphics card within a safe range, the graphics card fan usually automatically adjusts based on the temperature of the graphics card. When the temperature of the graphics card rises, the fan will spin faster to increase the cooling effect; when the temperature drops, the fan will slow down to reduce noise and energy consumption. In addition to graphics card fans, some high-end graphics cards

What kind of processor does Xiaoxin Pad 2024 use? What kind of processor does Xiaoxin Pad 2024 use? Jan 08, 2024 pm 04:21 PM

Many users are very interested in the configuration of the Xiaoxin pad2024 tablet computer. The processor used in the Xiaoxin pad2024 is Snapdragon 685, which is also a very easy-to-use processor that can support users' daily use and experience. What is the processor of Xiaoxin Pad2024? Answer: It uses the Snapdragon 685. This processor can be used daily, and it has a good retention rate even if you open a few more backends. 1. Although the tablet is not the main game, according to some practical tests, this tablet is still very good for daily use. 2. Among them, Honor of Kings has 60 frames, high resolution, and standard image quality. The average frame rate after one test round is 57.9 frames. 3. The power of the charger is 20 watts, and it takes about 120 minutes.

What is Binance opBNB? What are the impacts on users? What is Binance opBNB? What are the impacts on users? Mar 05, 2025 pm 12:36 PM

Binance launches opBNB: Binance recently announced the launch of a new expansion solution for BNB Smart Chain (BSC) - opBNB Test Network. This article will explain the characteristics of opBNB and its potential impact on users. opBNB Detailed explanation opBNB is a Layer2 extension solution built on OptimismOPStack, compatible with Ethereum Virtual Machine (EVM). It aims to improve the scalability of BSC, alleviate network congestion, and reduce transaction costs. In order to better understand opBNB, we need to understand the following key concepts: Layer2 (Blockchain Layer 2): transfer some main chain functions to the second layer, thereby improving the main

See all articles