91
GB
What is the concept of dynamic views or table-valued functions as an alternative to traditional views?
IN
पारंपरिक विचारों के विकल्प के रूप में गतिशील विचारों या तालिका-मूल्यवान कार्यों की अवधारणा क्या है?
A
A view that changes column definitions dynamically
एक दृश्य जो स्तंभ परिभाषाओं को गतिशील रूप से बदलता है
B
Functions that return a single scalar value
फ़ंक्शंस जो एकल स्केलर मान लौटाते हैं
C
A view that automatically updates its definition
एक दृश्य जो स्वचालित रूप से अपनी परिभाषा को अद्यतन करता है
D
Functions that accept parameters and return a table result set enabling parameterized view-like behavior that regular views cannot support (regular views cannot accept parameters) - e.g. get_orders_for_customer(cust_id INT) RETURNS TABLE
फ़ंक्शन जो पैरामीटर स्वीकार करते हैं और एक तालिका परिणाम सेट लौटाते हैं जो पैरामीटरयुक्त दृश्य-समान व्यवहार को सक्षम करता है जिसे नियमित दृश्य समर्थन नहीं कर सकते (नियमित दृश्य पैरामीटर स्वीकार नहीं कर सकते) - उदाहरण के लिए get_orders_for_customer(cust_id INT) रिटर्न टेबल
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
Table-valued functions (TVF): act as parameterized views. SELECT * FROM get_dept_employees(Accounting) - impossible with regular views. Inline TVFs (in PostgreSQL: SETOF/RETURNS TABLE functions) can be optimized similarly to views by the optimizer. Useful for: filtered/customized data access patterns requiring parameters.
व्याख्या (हिन्दी)
तालिका-मूल्यवान फ़ंक्शन (टीवीएफ): पैरामीटरयुक्त दृश्यों के रूप में कार्य करें। Get_dept_employees(Accounting) से चुनें * - नियमित दृश्यों के साथ असंभव। इनलाइन टीवीएफ (पोस्टग्रेएसक्यूएल में: सेटऑफ/रिटर्न टेबल फ़ंक्शन) को ऑप्टिमाइज़र द्वारा दृश्यों के समान अनुकूलित किया जा सकता है। इसके लिए उपयोगी: पैरामीटर की आवश्यकता वाले फ़िल्टर/अनुकूलित डेटा एक्सेस पैटर्न।