1z0-071 Exam QuestionsBrowse all questions from this exam

1z0-071 Exam - Question 42


Which three are true about dropping columns from a table? (Choose three.)

Show Answer
Correct Answer: BCEF

A primary key column cannot be dropped without first removing the primary key constraint, making B true. Multiple columns can be dropped simultaneously using the ALTER TABLE command, making C true. A column drop is implicitly committed, making F true. Other options either contain conditions under which the statements are not always true or require additional actions (such as cascading constraints) to hold true.

Discussion

6 comments
Sign in to comment
dexdinh91
Jan 13, 2023

E is partial correct because you can use ON DELETE clause

KizTine
Oct 9, 2023

Yes, it is possible to drop this type of column with : ALTER TABLE tableName DROP COLUMN colName CASCADE CONSTRAINT;

jm9999Options: CEF
Sep 18, 2023

For E, using cascade constraints, I was able to delete a primary key column that was referenced by a foreign key. C and F seem like the only truly correct options.

J4viOptions: CF
May 8, 2023

CF are the most correct, the other options have some special cases

TheOracleWasTakenOptions: CEF
Aug 1, 2023

If use have on delete then E is indeed right

yaya32Options: CEF
Jan 14, 2024

CEF for me

alelejajaOptions: CF
May 28, 2024

You can drop a column that is referenced by another column with CASCADE CONSTRAINTS clause (E), so I only find here 2 correct answers (CF)