School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,167 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,527 people online right now. Registration is fast and FREE... Join Now!




Relational Algebra schema problem

 

Relational Algebra schema problem

drewvs

19 Oct, 2009 - 09:26 AM
Post #1

New D.I.C Head
*

Joined: 18 Oct, 2009
Posts: 6

I am reviewing for an exam and I am stuck on the last question of the chapter and would like some guidance.

The question is as follows:

Consider the following relational schema:

employee(empno,name,office,age)
books(isbn, title, authors, publisher)
loan(empno,isbn,date)

Write the following queries in relational algebra
a. Find the names of employees who have borrowed a book published by McGraw-Hill.
b. Find the names of employees who have borrowed all books published by McGraw-Hill.

So far this is what I have:
a.PROJECT name(PROJECT books.publisher) NATURA JOIN employee

The above answer is wrong, any help would be appreciated. I would prefer an explanation as well as an answer, I need to know how to do it!

Thanks,

Drew



User is offlineProfile CardPM
+Quote Post


Posts in this topic
drewvs   Relational Algebra schema problem   19 Oct, 2009 - 09:26 AM
baavgai   I don't know of any databases that actually wo...   19 Oct, 2009 - 10:10 AM

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 06:30PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month