Database principle and application--relational database

Source: Internet
Author: User

Relational data Structures

Entities, relationships between entities are relational representations, and the logical structure of the user's angle is the two-dimensional table

Relationship: A subset of Cartesian product

Relationship Operations Collection
  • Traditional set operation: And, intersection, difference, Cartesian product

  • dedicated relational operations: Select , projection , connection ( Connection, equivalent connection, natural connection)

  • except: < Span class= "Md-math-after-sym"?

    < Span class= "Mathjax_preview" > < Span id= "Mathjax-element-6-frame" class= "mathjax_svg" >

    for s projection y, Y for R, and for other items, see two inclusive relationships

  • Extended operation of relational algebra

    Outer connection (left outer connection, right outer connection, full outer connection)

    Left OUTER join: Removes all tuples in the left relationship that do not match any tuple in the right relationship, with the ? Replace right-side relationship property

Relationship Integrity Constraints
    • Entity integrity: Primary key is not ?

    • Referential integrity: Foreign keys do not allow referencing entities that do not exist

    • User-defined Integrity

Database principle and application--relational database

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.