SSC IMD SA 2017 – Question 177

Question:

What type of statement is the following?
insert into instructor values (10211, ‘Smith’, ‘Biology’, 66000);

निम्न कथन किस प्रकार का है?
प्रशिक्षक मानों में डालें (10211, ‘Smith’, ‘Biology’, 66000);

Options:

  • Query
  • DML
  • Relational
  • DDL
  • क्वैरी
  • DML
  • संबंधपरक
  • DDL

Correct Answer: b)

Explanation:

Detailed Explanation:

The correct answer is b) DML (Data Manipulation Language).

SQL statements are categorized into functional sub-languages based on their operational role:

  • DML (Data Manipulation Language): Used for inserting, modifying, deleting, and updating data records stored within existing database tables without altering table schema. Standard DML commands include:
    • INSERT: Adds new rows/tuples to a table.
    • UPDATE: Modifies existing column values in table rows.
    • DELETE: Removes existing rows from a table.
  • DDL (Data Definition Language): Defines and modifies the structure of database objects (e.g., CREATE, ALTER, DROP, TRUNCATE).
  • DQL (Data Query Language): Used to retrieve data (SELECT).
  • DCL (Data Control Language): Controls user access and permissions (GRANT, REVOKE).

The provided statement INSERT INTO instructor VALUES (10211, 'Smith', 'Biology', 66000); inserts a new tuple into the instructor table, making it a DML statement.

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

सही उत्तर b) DML (Data Manipulation Language) है।

एसक्यूएल (SQL) कमांड्स को उनके कार्य के आधार पर वर्गीकृत किया जाता है:

  • DML (डेटा मैनिपुलेशन लैंग्वेज): इसका उपयोग टेबल के भीतर डेटा को जोड़ने, संशोधित करने या हटाने के लिए किया जाता है। प्रमुख DML कमांड हैं: INSERT, UPDATE, और DELETE।
  • DDL (डेटा डेफिनिशन लैंग्वेज): यह डेटाबेस स्कीमा और संरचना को परिभाषित करता है (जैसे CREATE, ALTER, DROP, TRUNCATE)।
  • DQL (डेटा क्वेरी लैंग्वेज): डेटा प्राप्त करने हेतु (जैसे SELECT)।
  • DCL (डेटा कंट्रोल लैंग्वेज): अधिकार देने/वापस लेने हेतु (जैसे GRANT, REVOKE)।

दिया गया कथन INSERT INTO instructor VALUES (...); टेबल में नया रिकॉर्ड दर्ज करता है, अतः यह एक DML कमांड है।

Leave a Comment

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

Scroll to Top