Exam FC0-U61 All QuestionsBrowse all questions from this exam
Question 46

A database administrator finds that a table is not needed in a relational database. Which of the following commands is used to completely remove the table and its data?

    Correct Answer: D

    The command used to completely remove a table and its data in a relational database is the DROP command. The DROP command deletes the entire table, including its structure and all data within it, from the database.

Discussion
Dion79Option: D

CREATE—this command can be used to add a new database on the RDBMS server (CREATE DATABASE) or to add a new table within an existing database (CREATE TABLE). The primary key and foreign key can be specified as part of the table definition. ALTER TABLE—this allows you to add, remove (drop), and modify table columns (fields), change a primary key and/or foreign key, and configure other constraints. There is also an ALTER DATABASE command, used for modifying properties of the whole database, such as its character set. DROP—this is the command used to delete a table (DROP TABLE) or database (DROP DATABASE). Obviously, this also deletes any records and data stored in the object. CREATE INDEX—specifying that a column (or combination of columns) is indexed speeds up queries on that column. The tradeoff is that updates are slowed down slightly (if the column is not suitable for indexing, updates may be slowed down quite a lot.) The DROP INDEX command can be used to remove an index. There are also SQL commands allowing permissions (access controls) to be configured. These are discussed in the upcoming pages.

Sweety_Certified7

What is the delete command? The rest..we'll explained. Tq

PetrexCornflex

The `DELETE` command is used to remove rows from a table, but it does not remove the table itself. The table structure and its columns remain intact. If the goal is to completely remove the table and its data, the `DROP` command is necessary. The `DROP` command deletes the entire table, including its structure and all data within it, from the database.