adplus-dvertising
frame-decoration

Question

To drop a column that is used as a foreign key, first:

a.

drop the primary key.

b.

drop the table containing the foreign key..

c.

drop the foreign key constraint.

d.

All of the above must be done.

Posted under SQL DBMS

Answer: (c).drop the foreign key constraint.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To drop a column that is used as a foreign key, first:

Similar Questions

Discover Related MCQs

Q. What SQL command will allow you to change the table STUDENT to add the constraint named GradeCheck that states that the values of the Grade column must be greater than 0?

Q. Which is not true of a correlated subquery?

Q. What is the full form of SQL?

Q. Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?

Q. Which operator performs pattern matching?

Q. What operator tests column for the absence of data?

Q. Which of the SQL statements is correct?

Q. The FROM SQL clause is used to...

Q. Which SQL keyword is used to retrieve only unique values?

Q. Which SQL keyword is used to retrieve a maximum value?

Q. What is a view?

Q. Which of the following SQL commands is used to retrieve data?

Q. Which of the following is a SQL aggregate function?

Q. Which SQL statement is used to update data in a database?

Q. Which SQL statement is used to delete data FROM a database?

Q. Which SQL keyword is used to sort the result-set?

Q. The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;

Q. Which of the following group functions ignore NULL values?

Q. Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
prints

Q. The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints