SSC IMD SA 2017 – Question 189

Question:

Which of the following are steps in query processing?

क्वेरी प्रोोसेसिंंग में निम्न में से कौन से चरण हैं?

Options:

  • Parsing and translation
  • Optimization
  • Evaluation
  • All options are correct
  • पदच्छेद और अनुवाद
  • अनुकूलन
  • मूल्यांकन
  • सभी विकल्प सही हैं

Correct Answer: d)

Explanation:

Detailed Explanation:

The correct answer is d) All options are correct (सभी विकल्प सही हैं).

In a Relational Database Management System (RDBMS), Query Processing refers to the complete sequence of activities involved in transforming a high-level declarative query (SQL) into low-level execution instructions. The three foundational phases are:

  1. Parsing and Translation (पदच्छेद और अनुवाद): The database parser checks the SQL statement for correct syntax and verifies table/column names against the database system catalog (semantic check). It translates the query into an internal relational-algebra expression or parse tree.
  2. Optimization (अनुकूलन): The Query Optimizer considers multiple logically equivalent relational-algebra expressions and various access paths (indices, join algorithms like hash-join or merge-join). Using catalog cost statistics, it selects the execution plan with the lowest estimated execution cost.
  3. Evaluation (मूल्यांकन): The query-execution engine takes the optimal evaluation plan, executes the operations against physical database files, and returns the query results to the user.

Because Parsing/Translation, Optimization, and Evaluation are all core phases, option d is correct.

विस्तृत व्याख्या:

सही उत्तर d) सभी विकल्प सही हैं है।

रिलेशनल डेटाबेस मैनेजमेंट सिस्टम (RDBMS) में क्वेरी प्रोसेसिंग (Query Processing) के तीन प्राथमिक और अनिवार्य चरण होते हैं:

  1. पदच्छेद और अनुवाद (Parsing and Translation): सबसे पहले पार्सर एसक्यूएल क्वेरी के सिंटैक्स की जांच करता है और सिस्टम कैटलॉग के साथ टेबल व कॉलम के नामों की पुष्टि करता है। इसके बाद वह क्वेरी को एक आंतरिक रिलेशनल अलजेब्रा ट्री में अनुवादित करता है।
  2. अनुकूलन (Optimization): क्वेरी ऑप्टिमाइज़र कई वैकल्पिक निष्पादन योजनाओं (Execution Plans) का मूल्यांकन करता है और लागत अनुमानों के आधार पर सबसे कुशल योजना का चयन करता है।
  3. मूल्यांकन (Evaluation): क्वेरी निष्पादन इंजन (Execution Engine) चुनी गई अनुकूलित योजना को डेटाबेस पर निष्पादित करता है और परिणाम प्रस्तुत करता है।

चूँकि ये तीनों क्वेरी प्रोसेसिंग के मूलभूत चरण हैं, अतः विकल्प d सही है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top