Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions