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

  Identify various hardware components and network topologies

Describe protocols at the different layers of the OSI model and explain their functionality

  Explain good strategies for placing files

Considering this information, explain good strategies for placing files with the following kinds of access patterns Frequent, random accesses to a small file (e.g., catalog relations).

  Can a register be use as the actual parameter in macro call

One way to do (static) linking is as follows. Before scanning the library, the linker builds a list of procedures needed. Can a register be used as the actual parameter in a macro call? How about a constant? Why or why not?

  Dealing with internet security and privacy

A procedure is said to be I/O bound if it needs a lot of I/O operations, whereas a procedure that consists of mostly computations within the CPU/memory system is said to be compute bound.

  O create a variable called nickname which has a nickname

1.  Show the steps to create a variable called NICKNAME which has a nickname for you in it; make this variable available to the environment

  Explain whether the erp software is mostly appropriate for

originally the sap erp software was developed for and implemented by mostly manufacturing companies in the beginning.

  What is the turnaround time for each process

Show the scheduling order of the processes using a Gantt chart and what is the turnaround time for each process?

  Creating hipo charts and decision tables

Now that you have a program design and a selected programming language for your assignment, you can start looking at the logical flow of the processes within your program and the data that is input,

  List and give a brief overview of any five programs

Using the material you learned in this topic, create instructions that can show a new Windows 7 and Office 2010 user at least three different ways to open a program in Microsoft Windows

  Maximum power transfer theorem

For the circuit below, what is the voltage across R(load) if the Maximum Power Transfer Theorem determines the value of R(load)?

  Discuss the merits of each file management system

Discuss the merits of each file management system - Methods available for file manipulation and how user-defined permissions are implemented and can be examined.

  Which of the factors would tend to increase technical risk

assessment of ability of the ultimate users of the system to accept the system and incorporate it into the ongoing operations of the organization

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