数据库原理(双语)习题assignment - of - module02
更新时间:2023-11-19 02:05:01 阅读量: 教育文库 文档下载
- 数据库原理双语期末试卷推荐度:
- 相关推荐
Assignment of Module02
Questions:
2.1 Discuss each of the following concepts in the context of the relational data model: (a) relation (b) domain (c) attribute (d) tuple
(e) degree and cardinality
2.2 Discuss the properties of a relation
2.3 Discuss the difference between the candidate keys and the primary key of a relation. Example what is meant by a foreign key. How do foreign keys of relations relate to primary key? Give examples to illustrate your answer. (1)Candidate Key (2)Primary Key (3) Foreign Keys
2.4 Define the two principal integrity rules for the relational model. Discuss why it is desirable to enforce these rules.
2.5 What is view? Discuss the difference between a view and a base relation.
Exercises :
The following tables form part of a database held in a relational DBMS: Hotel (hoteNo, hoteName, city) Room (roomNo, hoteNo, type, price)
Booking (hoteNo, guestNo, dateFrom, dataTo, roomNo) Guest (guestNo, guestName, guestAddress)
Where Hotel contains hotel details and hotelNo is the primary keys;
Room contains room details for each hotel and (roomNo, hoteNo) forms the primary key;
Booking contains details of bookings and (hoteNo, guestNo, dateFrom) forms the primary key; Guest contains guest details and guestNo is the primary key.
2.6 Identify the foreign keys in this schema. Explain how the entity and referential integrity rules apply to these relations.
2.7 describe the relations that would be produced by the following relational algebra operations: a) ∏hotelNo(? price>50(Hotel))
b) ? Hotel.hotelNo=Room.hotelNo(Hotel × Room)
c) ∏hotelNo(Hotel∞Hotel.hotelNo=Room.hotelNo(? price>50(Room)))
d) (? dataeTo≥’1-Jan-2002’(Booking))∝Guest
e) Hotel⊿Hotel.hotelNo=Room.hotelNo(? price>50(Room)) (‘⊿’means semi-join operation) f) (∏guestNo,hotelNo (Booking∞(Guest)))÷∏hotelNo(? city=’London’Hotel))
2.8
(a) List full details of all hotels.
(b) List all single rooms with a price below $20 per night. (c) List the names and cities of all guests.
(d) List the price and type of all rooms at the Grosvenor Hotel. (e) List the guests currently staying at the Grosvenor Hotel.
(f) List the details of all rooms at the Grosvenor Hotel, including the name of the guest staying in the room, if the room is occupied
(g) List the guest details(guestNo, guestName, and guestAddress) of all guests staying at Grosvenor Hotel.
2.9 Using relational algebra, create a view of all rooms in the Grosvenor Hotel, excluding price detail. What are the advantage of this view?
2.10 Represent, by means of one or more relations, the information contained in a timetable of departures from a railway station. Show the number, time, final destination, category and stops of every departing train.
正在阅读:
数据库原理(双语)习题assignment - of - module0211-19
文竹作文400字07-04
班主任基本功竞赛初赛笔试题103-22
蒸发冷却器除垢剂08-11
小学英语学科带头人计划05-26
竣工图纸编制要求及方法04-21
P4G中文版剧情流程攻略(完整版)10-02
深沟球轴承的组成和工作原理11-12
拟人环保作文06-30
UML实验指导书(1)04-17
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 双语
- 习题
- assignment
- module02
- 原理
- 数据库
- 锚杆框格梁边坡施工方案
- 上外全新版大学英语综合教程讲义-book4-unit8 Travel
- 帕米奥椅
- 野人传教士过河问题
- Javascript笔试题及答案
- 生物技术概论的期末复习总结
- 师德及工作表现情况证明
- 结构统一措施(试用版)
- 物理、霍雄、信息化教学设计方案1
- 病理生理试题库及答案
- 养母杨新雨阅读答案
- 工商部门调查处理IPAD侵权案件的难点及建议
- 小学寒假3-5年级作业思维训练 - 图文
- 乡村文化建设与乡风文明调研报告
- 湖南省2017年普通高等学校对口招生考试计算机应用类综合试卷
- 自动控制原理试题及答案(11)
- 第九章时间数列及指数分析练习题
- 病情观察和危重患者的抢救与护理
- 上海市闵行区2018届高三下学期质量监控(二模)生物含答案 - 图文
- 2012-2013学年第一学期《思想道德修养与法律基础》复习题库