Question
Which of the following SQL commands is classified as a
Data Definition Language (DDL) command?Solution
The CREATE command is a fundamental DDL command used to define and structure database objects like tables, schemas, views, and indexes. 1. Purpose: It sets up the framework for storing and managing data by defining objects before any data is inserted. 2. Examples: Commands such as CREATE TABLE, CREATE VIEW, and CREATE INDEX establish database structures. 3. Irreversible Changes: Unlike DML commands, changes made by DDL commands, such as CREATE, are persistent and affect the database schema. 4. DDL Classification: Commands in this category include CREATE, ALTER, and DROP, all related to defining and modifying the database schema. The CREATE command is indispensable for initiating a database system, ensuring proper data organization and storage. Why Other Options Are Incorrect: • A) SELECT: A DML command used to retrieve data, not to define database structures. • B) INSERT: A DML command for adding records into a table. • D) UPDATE: A DML command used to modify existing data in a table. • E) COMMIT: A TCL command that saves transactions to the database, unrelated to schema definition.
Who among the following is an immediate neighbor of Pallav and Padma?
A, B, C, D, and E are sitting in a line. C is sitting at the west end and E is the neighbor of B and C. Between A and C there are two persons. Who is si...
If all the persons are arranged in alphabetical order in the clockwise direction with respect to A, then how many persons remain unchanged in their pos...
Who among the following sits 3rd to the right of the one who likes Bata?
What is relation between G with respect to F?
Which of the following pair sits at end of row1?
How many persons are sitting between person R and person T?
How many persons sit between the one who sits to the immediate right of U and the one who sits to the immediate right of R?
How is I related to K?
Who sits second to the right of W?