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.
The cost price of 21 mangoes is Rs.200. Because of bad quality of mangoes, the shopkeeper has to sell mangoes at a loss that is equal to selling price o...
A man observes the top of a tower at an angle of elevation of 45°. He walks 50 meters towards the tower, and the angle of elevation becomes 60°. What ...
In a triangle ABC, the sides are AB = 15 cm, BC = 20 cm, and AC = 25 cm. Find the area of the triangle using Heron’s formula.
Determine the single equivalent discount of two successive discounts of 12% each?
From the top of a building, the angle of depression to a point on the ground is 45 degrees. If the building is 50 meters high, how far is the point from...
The average age of a group of 5 men is 30 years. If one man aged 35 leaves and a new person joins the group, raising the average age by 1 year, find the...
The following table shows the marks obtained by five students in three subjects:
What is the total number of cars sold by Dealership S in the given five months?
A train travelling at a speed of 80 km/h, takes 27 seconds to cross a pole. If the train increased its speed by 10 km/h, how long would it take to cross...
A person 'P' invested Rs. 5,600 at a simple interest rate of 25% per annum for a specific duration, resulting in a total amount o...