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 ____ ______ ______ ____ ______ ____ ____ ________ _____ _________ _________.
    ____ _______ ___ _______ _______ _______ ________ ____ ________ _____ __________.
    __________ _________ ________ _____ __________.
    ________ _________ _____ ________ __________ _________ _______ _____ __________ ________ __________.
    ________ ________ ____ _________ ________ _________ _______ ____ ______ ________.
    _____ _____ ______ _________ ____ _______ __________.
    ________ ___ ________ _____ ______.
    ________ _________ ___ _____ __________ _________ ___.
    _____ ____ ____ _____ ________ ______ ______.
    ______ _____ _________ _______ __________ ______ __________ _____ _______ ___.
    ________ _______ _____ ______ _________ _______ _______ ______ __________ ___ _______.
    ________ ______ ______ __________ ___.
    ___ __________ ____ _______ _______ __________ _____ _________ _________.
    ____ ____ _____ ________ _________ ______ _________ __________ _______.
    ______ ______ ______ ____ ________ __________ ____.
    ___ __________ ________ __________ __________.
    __________ ____ __________ ____ ____ _________ __________ __________.
    ________ ________ _____ _______ ______ _______ _______ _______.
    ____ _______ ________ ________ ___ ______ ______ ____.
    ___ ___ ___ ____ ______ _________ _________ __________ __________ _____.
    _______ ___ ___ ________ ___ _________.
    _____ ___ ______ ___ _______ ____ __________ __________ ______ _________.
    _______ ____ _____ _______ ______ ____ ______.
    ____ ______ ___ ___ __________ ______ _________ _____ _________ __________.
    _____ ______ ______ __________ _____ ___.
    _________ ____ ________ _____ ___ _________ _______.
    ____ ____ ___ ________ ______ _______ ________ _______ _____ _________.
    _________ ____ _____ _______ ______.
    _______ ____ __________ _______ ____ ______.
    ________ _____ _________ _____ ________ ____ ________.
    _____ ____ ___ ________ _________ __________ ________ ______ ______ ______ ____.
    _____ _____ _____ _________ _____ ___.
    _________ _______ ______ _______ ______ _______ _____ ________ ______ ___ __________.
    _____ _________ ___ _______ ___ __________ __________ _________ ___ _________.
    __________ ___ ____ _______ ________ ____ ____ ________ ________ _________.
    __________ _______ ____ ____ _____ _______ ____ ___.
    ____ _____ ___ ______ ___ ______ _________ ________ ___.
    _______ _____ ____ __________ ____ ___ ___ ________.
    _______ ________ _________ _____ ________ _______ _____.
    __________ ____ __________ __________ ______.
    __________ ____ ______ _________ _____ _________ ________ ______.
    ____ _________ ___ _________ _____.
    ___ _________ _____ _________ _______ ___ ______ ____ _____ ________.
    ______ _______ __________ _______ _______ ________ _________ ____ _____ _______ ________ ___.
    ________ ______ ____ _______ ___.
    ________ ________ _____ __________ _____.
    _________ __________ _____ ___ ________ ______ ________ ___ ________.
    ____ __________ _______ _________ ____ _______ __________ _________ _____ ___ ____ ________.
    _________ _________ _____ _____ __________ _______ _______ _______ ____ ___ _______.
    __________ _______ __________ ___ ________ ______ _________.
    Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Explain any one method of the query cost computation for SELECT and JO
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support