Question:medium

Which of the following SQL command can change the degree of the existing relation?

Show Hint

Degree means the number of columns. Only the command that changes table structure, ALTER TABLE, can add or drop a column.
Updated On: Oct 20, 2026
  • DROP TABLE
  • ALTER TABLE
  • UPDATE…SET
  • DELETE
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: List what each command touches:
DROP TABLE touches the whole table and deletes it.
ALTER TABLE touches the columns and the structure.
UPDATE touches the values in cells.
DELETE touches the rows.

Step 2: Link each part to a term:
Columns decide the degree of a table.
Rows decide the cardinality of a table.
So we need the command that works on columns.

Step 3: Pick the command:
Only ALTER TABLE works on columns.
Example: ALTER TABLE INVENTORY DROP COLUMN QUANTITY; reduces the degree by 1.
Example: ALTER TABLE INVENTORY ADD COLUMN PRICE INT; increases the degree by 1.

Step 4: Why the others fail:
DROP TABLE does not change the degree, it removes the table itself.
UPDATE...SET only rewrites values, so the column count stays the same.
DELETE removes rows only, so it changes the cardinality.

Final Answer:
ALTER TABLE changes the degree of an existing relation. This is option (B).
Was this answer helpful?
0