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

  Produce the context diagram for system

Produce the context diagram for system.

  How term "educational technology" covers a wide range

The word "educational technology" covers a wide range of tools and methods exploiting computers, networks and media for delivering knowledge. Compare virtual classes with minimum  two other delivery methods (TV-based courses, on-site company trai..

  Describing the penetration test

By using the MS Word, write down the three-page summary explaining a successful penetration test. Which penetration tools and techniques do you think would be required in the successful penetration test.

  What variety of cable will work to make an association

What variety of cable will work to make an association

  Write down a program to solve linear system

Write down a program to solve linear system

  Demonstrate that the expected search time for hashing

Demonstrate that the expected search time for hashing

  Describe the ip address

a MAC address and an IP address the same thing.

  Performance improvement for the least amount of money

suppose in your computer, the most of your daytime processes spend 75 percent of their time running in the CPU and 25% waiting for service from disk.

  Prepare a proposal to deploy windows server

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

  What are the business rules

What is 1 tier, 2 tiers and 3 tiers and N tiers in database architecture? could you offer an example on each tier.

  Reasons to incorporate the venturing

Explain how are corporate ventures differentiated from other projects within the large organizations and from the entrepreneurial start-ups? List some of the reasons which incorporate the venturing has had a relatively poor track record?

  Write c program ''myls'' that functions like unix command ''ls''

Write C program 'myls' that functions like unix command 'ls'.

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