Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam DS0-001 Topic 3 Question 34 Discussion

Actual exam question for CompTIA's DS0-001 exam
Question #: 34
Topic #: 3
[All DS0-001 Questions]

Which of the following commands is part of DDL?

Show Suggested Answer Hide Answer
Suggested Answer: C

The command that is part of DDL is CREATE. CREATE is a SQL command that belongs to the category of DDL, or Data Definition Language. DDL is a subset of SQL commands that are used to define or modify the structure or schema of a database, such as tables, columns, constraints, indexes, views, etc. CREATE is a DDL command that is used to create a new object in a database, such as a table, column, constraint, index, view, etc. For example, the following statement uses the CREATE command to create a new table called employee with four columns:

CREATE TABLE employee (

emp_id INT PRIMARY KEY,

emp_name VARCHAR(50) NOT NULL,

emp_dept VARCHAR(20),

emp_salary DECIMAL(10,2)

);

Copy

The other options are either part of different categories of SQL commands or not SQL commands at all. For example, UPDATE is a SQL command that belongs to the category of DML, or Data Manipulation Language. DML is a subset of SQL commands that are used to manipulate or modify the data or content of a database, such as inserting, updating, deleting, or selecting data. GRANT is a SQL command that belongs to the category of DCL, or Data Control Language. DCL is a subset of SQL commands that are used to control or manage the access or permissions of users or roles on a database, such as granting or revoking privileges or roles. INSERT is a SQL command that belongs to the category of DML, or Data Manipulation Language. INSERT is a DML command that is used to insert new data into a table.Reference:CompTIA DataSys+ Course Outline, Domain 1.0 Database Fundamentals, Objective 1.2 Given a scenario, execute database tasks using scripting and programming languages.


Contribute your Thoughts:

Jacqueline
2 months ago
Haha, D) INSERT? Really? That's a DML command, not DDL. I'm going with C) CREATE.
upvoted 0 times
Mable
10 days ago
GRANT and UPDATE are also DDL commands, so B) GRANT is correct too.
upvoted 0 times
...
Agustin
14 days ago
DDL stands for Data Definition Language, so CREATE is the right option.
upvoted 0 times
...
Lindy
1 months ago
C) CREATE is the correct choice for DDL commands.
upvoted 0 times
...
Ruthann
1 months ago
I agree, D) INSERT is definitely a DML command.
upvoted 0 times
...
Noelia
1 months ago
I agree, CREATE is part of DDL.
upvoted 0 times
...
Helga
1 months ago
You're right, INSERT is definitely a DML command.
upvoted 0 times
...
Elina
2 months ago
C) CREATE
upvoted 0 times
...
...
Loreta
3 months ago
I'm not sure, but I think UPDATE and INSERT are part of DML, not DDL.
upvoted 0 times
...
Marshall
3 months ago
I was about to say B) GRANT, but then I remembered that's more of a security/access control thing. C) CREATE it is!
upvoted 0 times
Nicholle
2 months ago
C) CREATE it is!
upvoted 0 times
...
Shawnda
2 months ago
I was about to say B) GRANT, but then I remembered that's more of a security/access control thing.
upvoted 0 times
...
...
Shawn
3 months ago
C) CREATE, obviously! This is the classic DDL command for creating database objects.
upvoted 0 times
Sheron
2 months ago
D) INSERT is not a DDL command either.
upvoted 0 times
...
Matilda
2 months ago
A) UPDATE is not part of DDL.
upvoted 0 times
...
Fannie
2 months ago
B) GRANT is not a DDL command.
upvoted 0 times
...
Marva
3 months ago
C) CREATE is definitely part of DDL.
upvoted 0 times
...
...
Lera
3 months ago
I agree with Lisbeth, DDL stands for Data Definition Language, so commands like CREATE are part of it.
upvoted 0 times
...
Lisbeth
3 months ago
I think the answer is C) CREATE because it is used to create new database objects.
upvoted 0 times
...

Save Cancel