Exam 1z0-071 All QuestionsBrowse all questions from this exam
Question 42

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

    Correct Answer: B, C, F

    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
dexdinh91

E is partial correct because you can use ON DELETE clause

KizTine

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

jm9999Options: CEF

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

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

alelejajaOptions: CF

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)

yaya32Options: CEF

CEF for me

TheOracleWasTakenOptions: CEF

If use have on delete then E is indeed right