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

  Dbmss have their own language

Explain Do all DBMSs have their own language? Is it similar to a programming language.

  Make an assignment to read rfc

Make an assignment to read RFC

  Wireless networking

Explain the origins/genesis of the wireless networking. Explain the devices included used and how they operate.

  How using the sequence structure only

As you know, three fundamental control structure are sequence, selection and repetition. Can you write down C program using the sequence structure only.

  What are the advantages of using this model

What are the stages of the CCM? What happens at each stage.What are the advantages of using this model.

  What difficulties are associated with implementing it

What is the principle of adequate protection.What difficulties are associated with implementing it.

  What is the significance of the "programming language"

Write a response to Hugh McBride's (of McBride Financial Services) e-mail message to Smith Systems Consulting, sent October 12. You can access Internet and Intranet Web sites of McBride Financial Services and of Smith Systems Consulting from the V..

  How to find the number of characters in a string

How to find the number of characters in a string

  Lan based attacks

Discuss or describe one or more LAN based attacks (also known as layer 2 attacks or lower layer attacks) or share any additional thoughts you may have on the LAN based attacks.

  What is best-case complexity of the algorithm

What is best-case complexity of the algorithm?

  Why the technique is called a bubble sort

Write down a program that implements a method that receives an array parameter and sorts that array using the bubble-sort algorithm.. why The technique is called a bubble sort.

  Program to find grade of students on basis of test scores

Write down a C++ program which finds a better grade for a student based upon two test scores. For a numeric average x.

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