数据库关系模型与实体关系模型

Database Systems

Purpose:provide users with an abstract view of the data

  • Data inconsistency
  • Data redundancy
  • Data integrity

Data models

A collection of conceptual tools for describing data, data relationships, data semantics, and consistency constraints

  • Data
  • Data relationships
  • Data semantics
  • Data constraints

Categories:

- Relational Model

- Entity-Relationship Model

Data abstraction

Hide the complexity of data structures to represent data in the database from users through several levels of data abstraction

Data Manipulation Language (DML)

Language for data retrieval, insertion, deletion, modification

Procedural DMLDeclarative (nonprocedural) DML
Propertyuser instructs the system to perform a sequence of operations to obtain the dataUser describes the desired data
ExampleRelational-AlgebraSQL

SQL:

create table instructor (      
ID         char(5),    
name       varchar(20),
dept_name  varchar(20),   
salary     numeric(8,2))

select	name from instructor	where	instructor.dept_name = ‘History’

Relational Algebra:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值