Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU Data Management - Foundations Exam - Topic 2 Question 8 Discussion

Actual exam question for WGU's WGU Data Management - Foundations exam
Question #: 8
Topic #: 2
[All WGU Data Management - Foundations Questions]

Which term defines a column, or group of columns, that refers to a primary key in a different table?

Show Suggested Answer Hide Answer
Suggested Answer: D

A foreign key is a column (or a set of columns) that establishes a relationship between two tables by referencing the primary key of another table.

Example Usage:

sql

CREATE TABLE Departments (

DeptID INT PRIMARY KEY,

DeptName VARCHAR(50)

);

CREATE TABLE Employees (

EmpID INT PRIMARY KEY,

Name VARCHAR(50),

DeptID INT,

FOREIGN KEY (DeptID) REFERENCES Departments(DeptID)

);

DeptID in Employees is a foreign key, referencing DeptID in Departments.

Ensures referential integrity DeptID in Employees must exist in Departments.

Why Other Options Are Incorrect:

Option A (Super key) (Incorrect): A super key is any set of columns that uniquely identifies a row, but it does not reference another table.

Option B (Simple key) (Incorrect): A simple key is a single-column primary key, not a reference to another table.

Option C (Composite key) (Incorrect): A composite key consists of multiple columns but does not necessarily reference another table.

Thus, the correct answer is Foreign key, as it establishes a connection between two tables.


Contribute your Thoughts:

0/2000 characters
Della
4 days ago
I keep mixing up foreign key and composite key. I hope I remember the difference during the exam!
upvoted 0 times
...
Jacquline
9 days ago
I remember practicing a question like this, and I think a foreign key is definitely the right answer.
upvoted 0 times
...
Daron
14 days ago
I think the term we're looking for is "foreign key," but I'm not completely sure.
upvoted 0 times
...

Save Cancel