Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that peerAdvisorID is a reference to another student (the studentid of another student). Publisher(publishername, address, city, state) Book(isbn, title, datePublished, publishername) BookCopy(bookID, isbn, condition,

Assume that peerAdvisorID is a reference to another student (the studentid of another student). Publisher(publishername, address, city, state)

Book(isbn, title, datePublished, publishername)

BookCopy(bookID, isbn, condition, datePurchased, price)

BookCheckout(bookID, studentID, dateIn, dateOut)

Student(studentID, firstname, lastname, city, state, email, peerAdvisorID)

Write relational algebra commands to do the following tasks.

1.Output the First Name and Last Name for all students from New Jersey.

2.Output the bookid, title, and condition of all book copies.

3.Output the first and last name of students along with the title of every book they have checked out.

4.Output the average price of all books.Output the average price of books checked out by a student from New Jersey.

5.Output the name of each publisher and the number of books published by that publisher

6.Output the names of all students and the name of their peer advisor.

7.Output the bookid for all book copies that have been checked out by every student.

8.Output the bookid for all book copies that have never been checked out by a student.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

In what sense can the historian be objective?

Answered: 1 week ago

Question

15.7 Explain the six steps in the termination interview

Answered: 1 week ago

Question

15.1 Define employee relations and employee engagement.

Answered: 1 week ago