




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
姓名考试日期5807605040学号课程号教学班数据库原理(双语)2007年级课程名称专业密 封 线 西 南 石 油 大 学 试 卷 第 9 页 共 10 页数据库原理(双语)考试试卷(第一套)课程号5807605040考试时间100分钟适用专业年级(方向):计算机科学与技术2007级考试方式及要求:闭卷笔试题号一二三四五总分得分阅卷人一、单项选择题(每题2分,共40分,将答案填在下表内)题号12345678910答案题号11121314151617181920答案1. Physical data independence(物理数据独立性)( )AAllows us to access(访问) the physical data independently(独立地) from all applications(应用程序)BAllows us to rewrite(重写) the queries(查询) on the database without affecting(影响) the physical dataCAllows us to physically reorganize(重新组织) the data in the database without affecting the applications running on the databaseDAll of the above2. Which of the following is NOT an advantage(优点) of database systems? ( )ARedundant data(冗余的数据) BProgram-data independence(应用程序与数据相互独立) CBetter data quality (更好的数据质量)DReduced program maintenance(减少应用程序维护)3. Which of the following is an example of a database integrity constraint(完整性约束条件)? ( )AThe grade assigned(分配) to a student for a course must be either an A, B, C, D or FBEvery course must have a unique(唯一的) value for its course number CThe name of any student must be less than 30 characters(字母) in lengthDAll of the above4. Customers(顾客), cars, and parts(零件) are examples of ( )Aentities(实体) Battributes(属性) Crelations Drelationships(联系) 5. A(n) _ is the relationship between a weak entity type and its owner. ( ) Aweak relationship B identifying(识别) relationship Cnon-identifying(非识别) relationship Downer relationship6. The relational data model(关系数据模型) consists of(由组成) which components(组件)? ( )AData structure(数据结构) BData manipulation(数据操作)CData integrity (完整性约束)DAll of the above 7. A primary key that consists of more than one attribute is called a( ) Aforeign key(外键)Bcomposite key(复合键)Cmultivalued key(多值键)Dcandidate key(候选键)8. A rule that states that each foreign key value must match a primary key value in the other relation is called the( )Areferential integrity constraint(参照完整性约束)Bentity integrity constraint(实体完整性约束)Cdomain integrity constraint(域完整性约束)Dnull constraint(空值约束)9. Which of the following are anomalies(异常) that can be caused by redundancies(冗余) in tables? ( )Ainsertion(插入) Bdeletion(删除) Cmodification(修改) Dall of the above 10. A candidate key(候选键) must satisfy(满足) all of the following conditions EXCEPT(除了)( )Athe key must uniquely(唯一地) identify(识别) the row Bthe key must indicate the rows position in the table(表明行在表中的位置)Cthe key must be nonredundant(非冗余的)Deach nonprime attribute(非主属性) is functionally dependent upon(函数依赖于) it. 11. The intersection(交集) of two relations R(A,B,C) and S(A,B,C) can be computed by( )A RSBR(RS)C RSD all of the above12. This operation is commutative(可交换的) ( )A Union(并)B Intersection(交)C Cartesian product(笛卡尔积)D all of the above13. What does the following SQL statement do? ( )Alter Table Customer_T Add (Type Varchar (2);AAlters the Customer_T table to accept Type 2 VarcharsBAlters the Customer_T table to be a Type 2 VarcharCAlters the Customer_T table, and adds a field called TypeDAlters the Customer_T table by adding a 2-byte field called Varchar14. What does the following SQL statement do? ( )Update Product_T Set Unit_Price = 775 Where Product_ID = 7AChanges the price of a unit called Product_T to 7BChanges the unit price of Product 7 to 775CChanges the length of the Unit_Price field to 775DUpdates the Product_T table to have a unit price of 77515. Assume(假设) we have executed(执行) the following CREATE TABLE statement: CREATE TABLE Emp ( Ssn CHAR(9) Primary Key; SuperSsn CHAR(9) REFERENCES EMP(Ssn) ;Which of the following could be used to insert(插入) the first row into the Emp table? ( )AINSERT INTO Emp(Ssn) VALUES (123456789)BINSERT INTO Emp(Ssn, SuperSsn) VALUES (123456789, 987654321)CINSERT INTO Emp(SuperSsn) VALUES (987654321)Dall of the above 16. _ is a set of commands(命令) used to update and query a database. ( )ADML BDDL CDCL DDPL 17. In an SQL statement, which of the following finds all groups meeting stated conditions(符合条件的组)? ( )ASelectBWhereCHaving DFind 18.To eliminate duplicate rows(消除重复行) in a query, the _ qualifier(限定符) is used in the SQL Select command. ( )AalterBdistinctCcheckDspecific 19. _ takes a value of true if a subquery(子查询) returns an intermediate results(中间结果) table which contains(包含) one or more rows. ( )AInBHavingCExistsDExtents20.A _is a temporary table(临时表) used in the FROM clause(子句) of an SQL query. ( )Acorrelated subquery(相关子查询)Bderived table(导出表)Cview table(视图表)DNone of the above二、判断题(每题1分,共10分,正确的填T,错误的填F,将答案填在下表内)题号12345678910答案1. We can define(定义) a relation schema(关系模式) R(A1, A2, A3) where A1 is the primary key(主键) and A3 is a foreign key(外键) that refers to(参考) R.( )2. A constraint(约束) is a rule in a database system that can be violated(违反) by users. ( )3. The E-R model is used to construct(构建) a conceptual model(概念模型). ( )4. The entity integrity rule(实体完整性规则)states that a primary key attribute can be null. ( )5. The attribute value in a tuple(元组) that makes up(组成) a foreign key(外键) can be null. ( )6. A composite key(复合键) consists of only one attribute. ( )7. One property(特征) of a relation is that each attribute within a relation has a unique(唯一的) name. ( )8. The columns of a relation can be interchanged(交换) without changing the meaning or use of the relation. ( )9. The DELETE SQL command is used to remove(去掉) a table from the database. ( )10. Subqueries(子查询) can only be used in the WHERE clause. ( )三、操作题(每题3分,共15分)现有关系数据库模式如下:学生(学号,姓名,性别,专业,年龄)课程(课程号,名称,学分)学习(学号,课程号,分数)用关系代数表达式实现12小题,用T-SQL语言实现35小题。1. 查询“学生”关系学生中都有哪些专业。2.检索“数据库原理”课程成绩高于90分的所有学生的学号、姓名、专业和分数。3. 检索没有选修课程号为“C135”课程的学生信息,包括学号,姓名和专业。4. 从“学生”关系中删除成绩出现过0分的所有学生信息。5. 定义“英语”专业学生所学课程的信息视图English_View,包括学号、姓名、课程号和分数。
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025重庆市铜梁区人民政府巴川街道办事处公益性岗位(基层就业服务协管)招聘4人(第三批)笔试备考试题及答案解析
- 纺织品质量改进方案
- 种植蔬菜的园艺技巧探讨
- 商业地产市场调研规划
- 2025云南昭通昭阳区信访局公益性岗位招聘1人笔试备考试题及答案解析
- 2025云南民族大学附属小学教育集团聘用制教师招聘(39人)笔试含答案
- 考研英语阅读解题技巧
- 打造个性化的目标客户群体
- 2025通辽工会社会工作者招聘10人笔试备考试题及答案解析
- 2025年康体医学运动损伤急救处理演练答案及解析
- HP碗式中速磨煤机检修教程
- 办公室一族常见病预防
- 精神科诊疗常规及技术操作规范-
- 中医内科学表格
- 人教版小学六年级上册语文单元测试卷全册
- DB37T 3842-2019 铁矿绿色矿山建设规范
- 《农业园区规划与管理》课件第一部分 03
- T∕CGMA 033001-2018 压缩空气站能效分级指南
- 江苏常熟新材料产业园环境风险评估报告
- 建设法规工程建设执业资格法规
- 丰田安全管理(安全班组活动)(课堂PPT)
评论
0/150
提交评论