nerdexam
Oracle

1Z0-146 · Question #158

How would you add a foreign key constraint on the dept_no column in the EMP table, referring to the id column in the DEPT table?

The correct answer is B. Use the ALTER TABLE command with the ADD clause on the EMP table. Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test…

Introduction to PL/SQL

Question

How would you add a foreign key constraint on the dept_no column in the EMP table, referring to the id column in the DEPT table?

Options

  • AUse the ALTER TABLE command with the ADD clause on the DEPT table.
  • BUse the ALTER TABLE command with the ADD clause on the EMP table.
  • CUse the ALTER TABLE command with the MODIFY clause on the DEPT table.
  • DUse the ALTER TABLE command with the MODIFY clause on the EMP table.
  • EThis task cannot be accomplished.

How the community answered

(45 responses)
  • A
    11% (5)
  • B
    78% (35)
  • C
    7% (3)
  • D
    2% (1)
  • E
    2% (1)

Explanation

Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test, First Pass. Help you to pass any IT Certification exams at the first try. You can reach us at any of the email addresses listed below. Any problems about IT certification or our products, you could rely upon us, we will give you satisfactory answers in 24 hours.

Topics

#ALTER TABLE#foreign key constraint#ADD clause#DDL

Community Discussion

No community discussion yet for this question.

Full 1Z0-146 Practice