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: 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
Step by Step Solution
There are 3 Steps involved in it
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
Get step-by-step solutions from verified subject matter experts
