The hard drive will the original query take

Assignment Help Computer Engineering
Reference no: EM1328637

Here's a query:

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: EM1328637

Questions Cloud

Describing rational basis test and strict scrutiny test : Explain the difference between the rational basis test and the strict scrutiny test and explain how they both impact burden of proof.
Price elasticity of demand for dominos pizza. : Quantity of pizzas demanded soared he following week from 1 pie an hour to 100 pies an hour. Illustrate what was the price elasticity of demand for Domino's pizza.
How does a company implement a supply chain : How does a company implement a supply chain given all the risks that affect a company? In addition, how does a company hedge the various risks
Perfect competition in the market for hotel rooms - graph : Create a graph on a spreadsheet program (such as MS Excel), copy and paste it into a MS Word document, write your answer in the MS Word document.
The hard drive will the original query take : suppose (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.
Find the domestic production costs : What happens when the cost of exporting and importing catch up to domestic production costs due to increased transportation and labor costs
Describing policy and functional tactic of a business : Illustrate a policy, and objective, and a functional tactic from a business you know about.
Explaining the supreme court classifications : What kinds of classifications do you think the Supreme Court should examine based on the 14th Amendment?
Explain and analysis of credit card safety : Explain and Analysis of Credit Card Safety and what are some of the new techniques credit card companies are implementing to ensure consumers are better protected from online credit card fraud

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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