Questions in category: 数据库系统 (Database System)
应用数学 >> 数据库系统

1. Prop. 如果从函数依赖集 $\mathcal{F}$ 推出的某个 FD 违反了 BCNF, 则 $\mathcal{F}$ 自身必包含一个违反 BCNF 的 FD.

Posted by haifeng on 2018-01-07 11:00:45 last update 2018-01-07 11:07:06 | Answers (1) | 收藏


写成数学的语言:

  • 记函数依赖集为 $\mathcal{F}:=\mathrm{FDs}$. 
  • $\overline{\mathcal{F}}$ 是 $\mathcal{F}$ 的完备化, 即 $\mathcal{F}$ 的所有导出的函数依赖的集合.
  • $\mathrm{BCNF}$ 指所有符合 BCNF 的函数依赖集合.

则该性质可以写为:

 

Prop. 若存在 $f\in\overline{\mathcal{F}}$, $f\not\in\mathrm{BCNF}$, 则必存在 $g\in\mathcal{F}$, 使得 $g\not\in\mathrm{BCNF}$.

2. 对于关系 $R(ABCD)$, 设有MVD $m: A\rightarrow\rightarrow BC$ 和 FD $f: D\rightarrow C$. 证明存在函数依赖 $g: A\rightarrow C$.

Posted by haifeng on 2017-12-11 10:24:16 last update 2017-12-11 10:24:16 | Answers (1) | 收藏


对于关系 $R(ABCD)$, 设有MVD $m: A\rightarrow\rightarrow BC$ 和 FD $f: D\rightarrow C$. 证明存在函数依赖 $g: A\rightarrow C$.
 

3. 法语数据库缩写是 SGBD, 英文是 DBMS

Posted by haifeng on 2017-06-26 22:53:20 last update 2017-07-10 23:27:31 | Answers (0) | 收藏


SGBD

de systèmes de gestion de bases de données

4. 对于数据库 Products, 现在加上约束条件

Posted by haifeng on 2015-10-12 20:01:46 last update 2015-10-12 20:02:21 | Answers (0) | 收藏


对于数据库 Products, 现在加上约束条件, 
(a) 速度低于 2.0 的 PC 机, 售价不能超过 3000 元.
(b) 一个屏幕超过 15.4 英寸的笔记本电脑至少应该有 200G 硬盘.

请写出 PC 表和 Laptop 表的 `CREATE` `TABLE` 语句. 

5. Ex6.5.1

Posted by haifeng on 2015-09-23 17:08:58 last update 2015-09-24 09:22:49 | Answers (1) | 收藏


d) 删除所有不生产打印机的厂商生产的笔记本电脑.

e) 厂商 A 收购了厂商 B. 将所有 B 生产的产品改为由 A 生产.

6. Ex2.4.1

Posted by haifeng on 2015-09-15 09:35:41 last update 2015-10-12 10:46:57 | Answers (1) | 收藏


查询那些只出售笔记本电脑, 不出售 PC 的厂商.

查询在一种或者两种 PC 机中出现过的硬盘的容量.