Analysis on three paradigms of Database Design

Source: Internet
Author: User

  

 

  • Superkey: the attribute set that uniquely identifies a tuples in a link is called the superkey of The Link mode.
  • Candidate Key: No superkeys with redundant attributes
  • Primary Key: The candidate key selected by the user as the record ID

From this we can see that the combination of superkeys is unique, but it cannot be the smallest and unique.

Answer:Student ID, which is unique and has no redundant attributes; name, which is unique and has no redundant attributes.

What is data dependency? Data Dependency refers to the dependency between a relational mode. The most typical example is function dependency.

2. Local dependency and full dependency:

In the figure: If W-> A exists in X and W, X-> A is true, W-> A is A local dependency, otherwise, W-> A is completely dependent.

X-> Y, Y-> A, and Y/>X and A do not belong to Y, So X->Yes..

 

Second paradigm: mainly to eliminate local Dependencies


Third paradigm: eliminate transmission Dependencies

R (course No., instructor No., instructor title) in the relationship model, if the course No.-> instructor No., instructor No.-> instructor title, the course number> instructor title is a transfer dependency. So it is not the third paradigm. In this case, R will be redundant and abnormal. For example, if a teacher opens five courses, there will be five records in the relationship, and the instructor title will be repeated five times.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.