Question: Books (bid: integer, btitle: string, bgenre: string) Publishers (pid: integer, pname: string, paddress: string) Catalog (bid, pid, ccost: float) The key fields are underlined, and

 Books (bid: integer, btitle: string, bgenre: string) Publishers (pid: integer, pname:

Books (bid: integer, btitle: string, bgenre: string) Publishers (pid: integer, pname: string, paddress: string) Catalog (bid, pid, ccost: float) The key fields are underlined, and the domain of each field is listed after the field name. Thus, bid is the key for Books, pid is the key for Publishers, and bid and pid form the key for Catalog. Relation Catalog gives the prices charged for Books by Publishers. 1. (10 Points) What does the following RA query compute: p(P. Ppidamc"Pottermore" Publishers)) brame((Ogenre='fiction Books) coast >30 Catalog) P) 2. (10 Points) What does the following DRC query computer { SP1N, P1S( Publisher A JA,B,C( Catalog / B = P1A-EP2, P2N, P2S( Publisher AED, E, F( Catalog A E = P2AC 3P1N, PIS( Publisher A 3A,C( Catalog A-5P2, P2N, P2S( Publisher A3D, F(E Catalog AC > F)))))} 4. (10 Points) What does the following TRC query compute: {t13pl e Publisher(t1.pid = pl.pid Ascle Catalog(el.pid = pl.pid A-Ep2 Publisher 32 Catalog(2.pid=p2.pid Acl.coost

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve the queries we need to interpret the given relational algebra RA domain relational calculus DRC and tuple relational calculus TRC queries bas... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!