ImageVerifierCode 换一换
格式:DOCX , 页数:10 ,大小:42.01KB ,
资源ID:15940641      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/15940641.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(上海交通大学数据库原理陆朝俊复习docxWord文件下载.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

上海交通大学数据库原理陆朝俊复习docxWord文件下载.docx

1、(B) Convert the following E/R diagram (with details omitted) to a relational database schema using the object-oriented method How many relation schemas will be produced? (Assume that each entity set has its own special attributes.)Relational TheoryGiven a relation R(A,B,C,D,E) and FDs ABtCE, BtD,and

2、 DtE, which of the following FDs can not be inferred?(A) ADtCE (B) BCtD (C) ABtA (D) BtEGiven a relation R(A,B,C,D) with FD: AtBC, which of the following MVD(A) AttEC(B) AttB(C) AttBD(D) None of the above.Suppose we have a relation R(A,B,C,D,E) and the FDs AtDE, DtB,and EC. If we project R (and ther

3、efore its FD,s) onto schema S(A,B,C),what is true about the key(s) for S?(A) Only ABC is a key(B) Only A is a key(C) Only DE is a key(D) A5 B, and C are each keysSuppose we are given a relation schema R(A,B,C,D,E) with functional dependencies AtB, BCtD and EtC. If we project R onto S(B,C,D,E),which

4、of the following functional dependencies holds in S and is not a BCNF violation for S?(A) BCtD (B) BEtD (C) BtE (D) EtCSuppose that R(A,B,C,D) satisfies MVD:AttB and it is known that R has tuples (al,bl,cl,dl), (al,b2?c25d2)? and (a2,bl,cl,d2) How many tuples must R have at least?(A) 3 (B)4 (C)5 (D)

5、6Relational algebra and DatalogIn the following question, assume R and S are bags, and the operators are bag operators.Q1:(RU S)-(RAS)Q2: (S-R) U (R-S)(A) QI and Q2 produce the same answer.(B) The answer to QI is always contained in the answer to Q2.(C) The answer to Q2 is always contained in the an

6、swer to QI.(D) QI and Q2 produce different answers.Given relations P(A,B,C) and Q(C,D),which of the following relational algebra expressions is equivalent to this Datalog rule:Answer(x,w) P(x,y,z) AND Q(y,w) AND xy(A) 兀P.A,Q.D(6.AP.B(P P.C=Q.C Q)(B) 兀P.A,Q.D(6.AQ.C and P.C=Q.C(? X Q)(C) 兀p.a,q.d(6.a

7、p.c(P) 00 Q)(D) 兀p.a,q.d(6.a 10; SELECT a FROM R WHERE b 10 GROUP BY a;Consider the following two SQL queries on relations R(a,b) and S(c): SELECT a FROM RWHERE b ALL (SELECT c FROM S); ANY (SELECT c FROM S);(A) Q1 and Q2 always produce the same answer.(B) The answer to QI is always contained in the

8、 answer to Q2Given R(A,B)=(a;10),(b;20),(c,30), and execute the following three statements. What is the result of the last statement?create view V as select A from R where B10;insert into V values(cT);select count(*) from V;Given a relation R(x) and two queries as follows: SELECT x FROM R; (SELECT x

9、 FROM R) UNION (SELECT x FROM R);In the 3-valued logic used by SQL, suppose x has the value NULL and y is TRUE, the result for (x 1) OR y is:(A) FALSE (B) UNKNOWN (C) TRUE (D) NULLConsider the following two SQL queries on relations R(a?b) and S(b9c): (RNATURAL FULL OUTER JOIN S)UNION(R NATURAL JOIN

10、S); (R NATURAL LEFT OUTER JOIN S)(R NATURAL RIGHT OUTER JOIN S);Suppose that relation R(A,B) has 100 tuples and S(B,C) has 50 tuples. The number of tuples in R NATURAL LEFT OUTER JOIN S is at most:(A) 50 (B) 100 (C) 150 (D) 5000Assume that a relation R(a,b) has no NULLs but may have duplicates Compare the following two queries: SELECT count(*) FROM R GROUP BY a; SELECT count(b) FROM R GROUP BY a;In the following, the results of QI and Q2 should be taken to be the result of the final SELECT * FROM R. Assume that the schema

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1