数据库课堂测验
终极预测【基于课堂作业】
********************************【考试题预测】******************************
1、给相应的文字描述写出先关的操作!(第2章)【必考】 【给个例题】
Consider the relational database of Figure 2.35, where the primary keys are un- derlined. Give an expression in the relational algebra to express each of the fol- lowing queries:
a. Find the names of all employees who work for First Bank Corporation. b. Find the names and cities of residence of all employees who work for First Bank Corporation.
c. Find the names, street address, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000 per annum. d. Find the names of all employees in this database who live in the same city as the company for which they work.
e. Assume the companies may be located in several cities. Find all companies located in every city in which Small Bank Corporation is located.
employee (person-name, street, city) works (person-name, company-name, salary) company (company-name, city) manages (person-name, manager-name)
Figure 2.35. Relational database for Exercises 2.1, 2.3 and 2.9.
Answer:
a. Πperson-name (σcompany-name =“First Bank Corporation” (works))
【例题2】
2.7 Consider the relational database of Figure 2.35. Give an expression in the rela-

tional algebra for each request:
a. Give all employees of First Bank Corporation a 10 percent salary raise.
数据库课堂测验_理学_高等教育_教育专区。课堂测验 1. 简述数据库系统的三级模式结构,并说明它的优点。 2. 简述数据库设计的特点。 3. 试述数据库管理系统的...
数据库课堂测验_教学案例/设计_教学研究_教育专区。课堂测验 测试一 ? 关系数据库语言的分类有哪些? ? 关系是笛卡尔积的子集吗? ? 概念模型是用来表述什么世界...
数据库课堂测试题 一个简单”商品销售数据库”,需包含下列信息:(1)仓库(仓库号,仓库名称,仓库管理员,……),(6)商品分类(商品类别, 类别名称,…..),(2)...
课堂测验数据库: 一个公司的工资管理系统,共有以下 3 张数据表员工表: 属性名 员工姓名 性别 部门编号 职位 数据类型 主键 外键 非空 唯一 取值范围 默认值 ...
课堂测验数据库: 一个公司的工资管理系统,共有以下 3 张数据表员工表: 属性名 员工姓名 性别 部门编号 职位 数据类型 主键 外键 非空 唯一 取值范围 默认值...
SQL数据库课堂测试题 隐藏>> --P62 实验2 创建数据库和表 create database StuInfo on primary (name=StuInfo, filename='C:\Program Files\Microsoft SQL ...
2009级数据库原理课堂测验1 隐藏>> ?已知一个公司的职工-社团的数据库有三个基础表: 职工:E(Eno,Ename,Age,Sex); 社团:C(Cno,Cname,Manager,Address) ...
2009级数据库原理课堂测验1答案 隐藏>> ?已知一个公司的职工-社团的数据库有三个基础表: 职工:E(Eno,Ename,Age,Sex); 社团:C(Cno,Cname,Manager,Address)...
数据库原理课堂配套测试卷(答案)_理学_高等教育_教育专区。数据库原理及应用《数据库原理与应用》单元测试(一) 学号: 管理阶段 II.文件系统阶段 III.数据库阶段...
热门文档