Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

subject : database Let Productspid price) and Sales(pid, date) be two relations; primary keys are underlined, pid is integer, prict is real and date is

subject : database
image text in transcribed
Let Productspid price) and Sales(pid, date) be two relations; primary keys are underlined, pid is integer, prict is real and date is a string with format dd/mm/ yyyy. Products occupies 20,000 pages in no particular order. Saler. occupies 7,000 pages and is sorted in ascending pid order. Saler stores historical information for at least 3 years; sales are distributed uniformly over time. The memory buffer can fit 11 pages. Consider the following query; SEIECI DISTINCI * FROM Sales S, Products P WHERE S.pid = P.pid AND S.date =22/11/2009 Due to the application's constraints, the execution time of the query should not be longer than 5min. (Important if you cannot satisfy this constraint then your solution is wrong). Assume that an average I/O takes 10msec and ignore the CPU cost. The result is displayed on screen (i.e., it is not written on disk); ignore the cost to display the result. - Propose (verbally or pseudocode) an algorithm to exccute the query. - Prove that your algorithm can execute the query within the time limit

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago