List the names of patrons who have borrowed two or more

Assignment Help Computer Engineering
Reference no: EM132158117

Use the following database:

BOOK(pages,title,isbn,category,author,year,press)

PATRON(name,id,age,address)

BORROWS(bisbn,pid,day,month,year)

Assume that isbn is the primary key in BOOK and id is the primary key in PATRON. The category of a book can be one of 'fiction', 'non-fiction', 'comedy', 'biography', or similar; author is the name of the author of the book (note that this design assumes each book has only one author).

In BORROWS, bisbn is a foreign key to BOOK and pid is a foreign key to PATRON, and together they form the primary key. This means that a patron may borrow several books and a book may be borrowed by several patrons.

1. Relational Algebra Write the queries below in relational algebra. You can use (and reuse) temporary relations, but no grouping or aggregates.

(a) List the authors who have written a comedy and a biography.

(b) List the authors who have written a comedy or a biography.

(c) List the names of patrons who have borrowed two or more books.

(d) List the isbn of books that have never been borrowed by a patron over 50 years old.

(e) List the names of patrons who have borrowed one of the books that Jim Jones (another patron) has borrowed.

Reference no: EM132158117

Questions Cloud

Describe the process of genetic transformation : Briefly define and describe the process of genetic transformation. Include in your answer what causes the bacteria to take in the DNA.
Write all appropriate connectivities on the erd : Use the following business rules to draw the fully labeled Crow's Foot ERD in Visio. The diagram must include all entities, attributes, and relationships.
How would you explain this genetically : In addition, when the eggs hatch, for every two males he only has one female. How would you explain this genetically?
Slow or fast response to maintain homeostasis in the body : Does the nervous system generate a slow or fast response to maintain homeostasis in the body?
List the names of patrons who have borrowed two or more : List the names of patrons who have borrowed two or more book.List the isbn of books that have never been borrowed by a patron over 50 years old.
What happens in target cells that respond to hormones : Which type of hormone (lipid or protein) activates short-term metabolic changes in cells? Or longer-term changes?
Prove np-completeness of testing if a linear system : Use the fact that 3-CNF is NP-complete to prove NP-completeness of testing if a linear system of inequality
Structures on the surface of cells : Do hormones have to cross the cell membrane or just attach to these structures on the surface of cells?
Construct the matrix that scales : Explain why it is usually advantageous to combine transformations before applying them (despite the fact that case (a) requires more multiplications).

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd