Question

Explain any one method of the query cost computation for SELECT and JOIN operations. Make the query tree for the following query (assume the database of problem 2(c).
SELECT s.name, p.pogID, c.courseName
FROM Student s, Programme p, Course c, Course_Programme cp
WHERE s.stProg = p.progID AND p.progID = cp.progID AND
c.courseCode=cp.courseCode AND progID=”MCA”;

01 Dec 2023
Answer :
Word Count : 542

To understand query cost computation, it's essential to grasp the concept of a query execution plan, which is a step-by-step strategy for executing a SQL query. The cost of a query is typically estimated based on the number of disk operations required to execute the query, such as reading data from disk or writing data to disk.

One common method for query cost computation is the Cost-Based Optimization (CBO) method, which considers various factors like statistics on the data, available indexes, and the query execution plan to estimate the cost of different execution strategies. The goal of CBO is to choose the execution plan with the lowest estimated cost.

Here's a general overview of the steps involved in CBO:

  1. Parsing and Validation: The SQL query is parsed and validated for syntax errors and semantic correctness.
  2. Query Rewrite: The query is transformed into an equivalent, optimized form using techniques like view merging, subquery unnesting, and predicate pushing.
  3. Enumeration: All possible execution plans for the query are generated, considering different join orders, access methods (index scans, table scans), and other execution strategies.
  4. Cost Estimation: For each execution plan, the cost is estimated based on various factors,
____ ________ ____ _____ ____ ____.
_________ ____ __________ _______ __________ _________ _________ ____.
_______ __________ ___ __________ ________ _______ _________ __________ ______.
_____ ____ ______ ________ ________ _________.
___ ______ _________ _______ _________ ____ ____ ____ ____.
________ ____ ________ _________ _____ _____ _____ __________.
_________ _____ __________ _____ _________ __________.
______ ________ ___ ______ _________ ______ _________ _______ ________ _____ ________ ____.
_________ _________ ___ ___ ______ _______ _______ ______ __________ ________ _________.
______ _________ _____ ______ ________ _________ ______ ________ ______ ____ __________ ___.
______ ___ ____ ________ _________.
______ _________ ______ _____ ____ __________ ______ ________ ______ ___ ________ ____.
________ __________ ______ ______ _________.
__________ __________ ______ __________ _________ ___ ______.
____ ______ _____ __________ ______ _________ ____.
____ __________ __________ _____ _____ ______ ____ _______ ___ ____.
________ _______ ____ ________ _______ _________ _____ ______.
___ ___ _________ _________ ______ ___ ________ ________.
________ _______ __________ _________ ____ ________.
_______ _________ _____ ___ __________ ________ ____ ____.
______ _____ ____ ________ ________ _____ ___ _____ _______.
______ ____ ______ ___ __________ ___ ___ ____.
____ _____ _______ _________ _____ __________.
_________ __________ _____ __________ _____ _____ ____.
_______ ____ ______ ______ __________ _____ ________ _______ ____ ________ _______ _______.
____ _____ ________ ____ ___ _______ _____.
______ ___ _____ ______ ______ ___ ___ ________.
________ ___ ____ _____ ____ ________ _____ ________ ___ __________.
________ _______ _________ __________ _________ _______ ______ _________ ___ ________.
__________ _________ ____ _______ ___ ________ _________ _____ ____ ______ ___.
________ __________ ________ _______ ___ ________ __________ ________.
________ ________ ____ _________ __________ ______ ______ _________ _______.
_____ ________ ________ __________ ___ _______ ____ ___ __________ _______.
____ ________ _________ __________ ____ _________ _______ _____ _________ ________ ___.
______ ______ ___ ____ ___ ___ ___ ________.
_________ ________ ____ __________ _______.
___ ________ ______ ___ _____.
______ ____ _________ __________ _______ ____ ______ __________.
______ ______ ________ _____ ______ _______ _________.
_________ ________ _________ _____ ________.
____ _____ _______ _________ _____.
______ __________ ___ ____ __________ _______ ___ __________ __________ _________ _______ _____.
_________ _______ ______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 207 2023 2024 - Explain any one method of the query cost computation for SELECT and JO | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→