数据库模拟试题及答案(英文).doc

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE PAGE 7 Exam of Database Technology Applications 1. Describe the three levels and data independence. 2. What are key constraints and foreign constraints? 3. Explain LEFT JOIN, OUTER JOIN and INNER JOIN. 4. For the following relation schema and sets of FD’s: R is (A, B, C, D, E, F,G) with FD’s A- B, B- C, A- E, CD-G. 1) Identify the candidate key(s) for R. 2) Identify the best normal form that R satisfies 3) Decompose it in 3NF if necessary. 5. Explain the ACID properties. 6. Notown Records has decided to store information about musicians who perform on its albums (as well as other company data) in a database. The company has chosen to hire you as a database designer. Each musician that records at Notown has an SSN, a name, an address, and a phone number. Each instrument used in songs recorded at Notown has a name (e.g., guitar, synthesizer,flute) and a musical key (e.g., C, B-flat, E-flat). Each album recorded on the Notown label has a title, a copyright date, a format (e.g.,CD or MC), and an album identifier. Each song recorded at Notown has a title and an author. Each musician may play several instruments, and a given instrument may be played by several musicians. Each album has a number of songs on it, but no song may appear on more than one album. Each song is performed by one or more musicians, and a musician may perform a number of songs. Each album has exactly one musician who acts as its producer. A musician may produce several albums, of course. 1) Defining the completed E-R diagram. 2) Defining information for each relation. 7. Consider the following relational schema and give T-SQL expressions for the following queries. Sailors(sid, sname, age) Boats(bid, bname, color) Reservers(sid, bid , day) 1)Create the table Sailors (sid, sname , age). It includes the domain of values associated with each attribute and integrity constraints. sid INT NOT NULL PRIMARY KEY sname VARCHAR(10) NOT NULL age INT NULL 0age100 2) Change the attribute sname VARCHAR

文档评论(0)

137****4262 + 关注
实名认证
内容提供者

网文天下

1亿VIP精品文档

相关文档