关系

关系模型

构成

  • Attribute
    • A column header
  • Tuple
    • a row of data
  • Domain
    • Data type of the Tuple
  • Degree
    • Number of attributes

Key

  • Super key
    • 能唯一确定
  • Key
    • 没有多余的 SK
  • Candidate Key
  • Primary Key
  • Foreign Key

完整性约束

image-20230627211920272

关系代数

Select可交换
Project不可交换
Rename
Union
Intersection
Difference
Cartesian Product
Join

范式

ER-Model

并发