北邮国院--数据库系统笔记

北邮国院–数据库系统笔记


创建日期:2024年2月29日

说明:更新到开学第一周内的全部内容。


1 Introduction

Data

Facts and analysis collected together for reference and analysis.

Database

A shared collection of logically related data (and a description of this data) designed to meet the information need of an organization.

DBMS

A software system that enables users to define, create, maintain, and control access to the database.

Database Schema

The description of the database.

Objectives of three level ANSI-SPARC architecture

Separate each user’s view of the database from way that database is physically represented.(还没太理解这句话的意思)

2 Relational Model and Relational Algebra

Relational Model

In a relational model, all the data is logically structured within relations.

Relation

A relation is a two-dimensional table arranged in columns and rows.

Attribute

An attribute is a named column of data.

Domain

A set of allowable values for one or more attributes.

Tuple

A tuple is a row of relation.

Degree

The number of attributes in a relation.

Cardinality

The number of tuples in a relation.

Relational Database

A collection of normalized(规范化的) relations with distinct relation name.

Candidate (Primary) Key

Selected to identify tuples uniquely within relation.

Foreign Key

Foreign key is an attribute or a set of attributes, within one relation that matches candidate(primary) key of another relation.

Relational Schema

A relation can be represented in the format: Relation name(attribute 1, attribute 2, …, attribute n)

Relational Algebra

Relational Algebra is formal language associated with relational model.

3 ER Modelling Students

Data Model

A data model is a graphical description of the components of database.

Composite Key

A candidate key that consists of two or more attributes.

Recursive Relationship

Relationship type where same entity type participates more than once in different roles.

Multiplicity

Main type of constraint on relationship is call multiplicity.

  • 19
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值