Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Are the answers I have bolded correct (look at relationship table) if they are not correct please post the answer. Please use the relationships provided

Are the answers I have bolded correct (look at relationship table) if they are not correct please post the answer. Please use the relationships provided in the picture. Every answer I have been given wont run it shows an error.

Query 2: Give ISBN and Title for books currently loaned out.

SELECT Book.ISBN, BookCardCatalog.Title FROM Book, Borrower, BookCardCatalog WHERE Book.SSN = Borrower.SSN AND BookCardCatalog.ISBN = Book.ISBN; 

Query 4: How many books by first authors whose name includes MAN are checked out?

SELECT BookCardCatalog.1stAuthor, COUNT(BookCardCatalog.Title) FROM Book, Borrower, BookCardCatalog WHERE Book.SSN = Borrower.SSN AND BookCardCatalog.ISBN = Book.ISBN AND BookCardCatalog.1stAuthor LIKE '%MAN%' GROUP BY BookCardCatalog.1stAuthor; 

Query 7: List titles covering both subjects GEOG and GEOL.

SELECT BookCardCatalog.Title, covers.SubjectID FROM BookCardCatalog, covers WHERE BookCardCatalog.ISBN = covers.ISBN AND covers.SubjectID = 'GEOG' AND covers.SubjectID = 'GEOL';image text in transcribed
Relationships X Borrower ISSN Name Address 1 Subject/Topic SubjectID SubjectDescription BookCardCatalog ISBN Title 1stAuthor Publisher YearOfPublication Book 00 o ISBN 1 Copy# SSN DateCharged Out DateDue covers ISBN 1 SubjectID

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

3. Are our bosses always right? If not, what should we do?

Answered: 1 week ago

Question

2. What, according to Sergey, was strange at this meeting?

Answered: 1 week ago