76
GB
What is the purpose of CREATE TABLE AS SELECT (CTAS) and what is NOT copied?
IN
CREATE TABLE AS SELECT (CTAS) का उद्देश्य क्या है और क्या कॉपी नहीं किया गया है?
A
Creates a new physical table populated with data from the SELECT query results - but does NOT copy constraints (primary keys, foreign keys, indexes, check constraints) from the source
SELECT क्वेरी परिणामों के डेटा से भरी हुई एक नई भौतिक तालिका बनाता है - लेकिन स्रोत से बाधाओं (प्राथमिक कुंजी, विदेशी कुंजी, अनुक्रमित, चेक बाधाएं) की प्रतिलिपि नहीं बनाता है
B
Creates a temporary table with the SELECT schema
SELECT स्कीमा के साथ एक अस्थायी तालिका बनाता है
C
Creates a view based on a SELECT query
SELECT क्वेरी के आधार पर एक दृश्य बनाता है
D
Creates a materialized view from the SELECT
चयन से एक भौतिक दृश्य बनाता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
CTAS: creates a new table with the structure derived from the SELECT and populated with the SELECT result data. Copies: column names and data types. Does NOT copy: PRIMARY KEY, FOREIGN KEY, indexes, triggers, constraints (these must be added separately after creation).
व्याख्या (हिन्दी)
CTAS: creates a new table with the structure derived from the SELECT and populated with the SELECT result data. प्रतिलिपियाँ: स्तंभ नाम और डेटा प्रकार। प्रतिलिपि नहीं बनाता: प्राथमिक कुंजी, विदेशी कुंजी, अनुक्रमणिका, ट्रिगर, बाधाएं (इन्हें निर्माण के बाद अलग से जोड़ा जाना चाहिए)।