How many reads from harddrive will the original query take

Assignment Help Operating System
Reference no: EM13944788

SELECT orders.order_date, orders.customer_numb
FROM orders INNER JOIN order_lines ON orders.order_numb = order_lines.order_numb
WHERE order_lines.isbn = '0-131-4966-9';

and here it is rewritten using a subquery:

SELECT order_date, customer_numb
FROM orders
WHERE order_numb IN (SELECT order_numb
FROM order_lines
WHERE isbn = '0-131-4966-9')

Assume that the tables orders and order_lines each have 500,000 rows/tuples.

Assume (somewhat artificially) that RAM can hold 200 rows and devotes half of that to reading one table and half to reading the other table and has "other places" to store the subquery/query results.

(i) How many reads from the hard drive will the original query take?

(ii) How many reads from the hard drive would the rewritten query take?

Reference no: EM13944788

Questions Cloud

Compute earnings per share and diluted earnings per share : At December 31, 2008 Quiggin had 400,000 shares of common stock outstanding, How do I compute earnings per share and diluted earnings per share
Commissions principles of good governance : Pick an institution and audit its governance processes according to the UK Commission's Principles of Good Governance. Your governance audit should:
Is critical thinking more important than creative thinking : Is critical thinking more important than creative thinking or is creative thinking more important than critical thinking? Take a stand on one side of this question and present a response that will support your stand. In your response, identify and..
Is victoria targeting of spa and wellness market justified : How would you go about assessing the destination managers' assertion that the Daylesford / Hepburn Springs region is the spa capital of Australia? Is Victoria's targeting of the spa and wellness market justified?
How many reads from harddrive will the original query take : How many reads from the hard drive would the rewritten query take?
Discuss ways that work and life balance issues : Discuss ways that work / life balance issues may be improved in the U.S. by drawing on successful practices from other nations. Provide specific examples to support your response.
Percentage of republican voters in the second state : In one state, 52% of the voters are Republicans, and 48% are Democrats. In a second state, 47% of the voters are Republicans, and 53% are Democrats. Suppose a simple random sample of 100 voters are surveyed from each state. What is the probability..
Analyze how the company uses supply chain strategies : Choose one company as a case and critically analyze how the company uses supply chain strategies to build a competitive advantage. You need to clearly relate the case to the topics that has been covered in the course.
Evaluate the above statement : Evaluate the above statement and indicate: areas of agreement, if any and areas of misconception, incompleteness, or fallacious reasoning included in the statement

Reviews

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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