关于relational database algebra expression 关系代数(数据库) 大专历年考题 求解答...

xeraee 2010-04-13 12:04:38
The relational schemas below capture the data requirements for a group of studio cinemas, and the movies currently showing.

Movie(title, year, length, inColor, studioName, producerCertNo);
StarsIn (movieTitle, movieYear, starName);
MovieStar (name, address, gender, birthdate);
MovieExec (name, address, CertNo, netWorth);
Studio (name, address, studioCertNo);

Note:
1. example studio name are MGM, HBO, STARMOVIE, etc
2. There might be same movie title in different movie year.

(a) Write the relational algebra expression to find all the stars’ names who either are male or live in Malibu as part of the address.[6 marks]

(b) Write the relational algebra expression to find all Movie Star names in pair that have same address and the first result star name precedes the second one alphabetically. Assuming the address only record up to the region where the Movie Star lives in. e.g. New York, USA
[8 marks]



(c) Write the relational algebra expression to find the producers of Harrison Ford’s movies, Note that Harrison is a Movie Star.[12 marks]

(d) Write relational algebra expression to find the total length of film produced for producers who made at least one film prior to 1930 with a net worth of more than $10,000,000.[4 marks]
...全文
174 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,209

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 其他数据库
社区管理员
  • 其他数据库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧