数据库复习

interpreter 解释器
compiler 编译器
Query 查询
evaluation 计算
Polynomial 多项式
duplicate rows 双行
arity 数量 r, s must have the same arity (same number of attributes)
compatible 相容的 The attribute domains must be compatible

Cartesian-Product 笛卡儿积
disjoint 不相交的
Assume that attributes of r(R) and s(S) are disjoint.
If attributes of r(R) and s(S) are not disjoint, then renaming must be used

select:
project: 
union: 
set difference: –
cartesian product: x
rename: 

Set intersection 
Natural join
Division 
Assignment 

avg: average value
min: minimum value
max: maximum value
sum: sum of values
count: number of values

outer join : An extension of the join operation that avoids loss of information
duplicate elimination and grouping 重复消除和分组

predicate 断言,宣布
clause 从句
• The select clause list the attributes desired in the result of a query
case insensitive 大小写不敏感
the elimination of duplicates 消除重复
asterisk 星号
ascending order 升序
descending order 降序
例 : order by amount desc, loan_number asc

Duplicate semantics 重复的语义
union, intersect, and except
  

Deposit (银行的)储户

Having Function
predicates in the having clause are applied after the formation of groups whereas predicates in the where clause are applied before forming groups

update account
set balance = case
when balance <= 10000 then balance *1.05
else balance * 1.06
end

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值