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

  What is green computing and green communication technology

What is Green Computing and Green Communication technology.

  Comparing relative speed of lan and wan between sites

ABC Corporation employs 40,00 people along with their own associated IP addresses, and operates over the 400 serversDescribe how the relative speed of 100BaseT LANs used at each location is compared to accessing the WAN link between two sites.

  Web search engine

Utilizing a Web search engine, determine an article from the reputable source published in the past six months which reports on relative risk that comes.

  Discuss the tester and developer relationship

Discuss the tester and developer relationship within spiral development methodology. You may use your personal experiences to support the arguments.

  Library management system

Prepare a module which can exhibit the Library Management System

  Write a recursive implementation of euclids algorithm

Write a recursive implementation of Euclids algorithm

  Global economy

Explain why is the global economy so vital today? Explain how the global economy has altered since the mid-twentieth century.

  Algorithm for generating list of customers

Develop an algorithm in order to generate a list of customers from Glad Rags Clothing Company’s customer master file.

  Write down problem on strings in java

Write down problem on strings in java

  Healthcare it

Summarizing everything you have learned related to the Healthcare IT, describe what has been the most surprising or the interesting lesson that is learned.

  Determining the salary of person

Write down a program which determines how much a person earns in a month in case the salary is one penny first day, two pennies second day, four pennies the third day, and so on with the daily pay doubling each day employee works.

  Detecting problem behind slow system booting

Suppose you have observed that your system is performing slower than the usual. Which system resources are likely to be at the root of the problem?

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