Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relations: Book BID Title Year Rating 1 Book 1 1861 4 2 Book2 1977 2 3 Baoka 1944 1 4 Book 2006

image text in transcribed

Consider the following relations: Book BID Title Year Rating 1 Book 1 1861 4 2 Book2 1977 2 3 Baoka 1944 1 4 Book 2006 5. Loans SID BID StartDate 5123 3 1-May-2019 4127 2 4 4 22-Feb-2019 12-Dec-2018 8357 Student SID Student Name Email 4127 Yuri Yuri@nott.cn 5123 Kent Kent@nott.cn 5177 Juan Juan@nott.cn 8357 Fiona Fiona@natten 1. What are the results of the following three relational algebra expressions? Provide the answer in a form of table. If the expression is not valid, explain the reason. , a>-)) a. Osio>5000 (12.02xs.sin,StartDare (Loans Loans.SID-Student.sip Student)) b. 180,Title (Book) n studenti,sookId (Loans) C. TISD (Orating>3 (Student student.sip-Loans.Sip Loans LOCKS.BIO-Book BID Book)) 2. The library wants to send warning emails to students who have kept the book for more than four months. These emails also include student names, book titles. Write down the SQL statement and the relational algebra expression that allow the library to obtain the information from the tables. 3. Write a SQL statement to get the number of books borrowed by each student. 4. Write a SQL statement to get the total number of books with ratings higher than 3

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

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions