Database Concepts (7th Edition)
Database Concepts (7th Edition)
7th Edition
ISBN: 9780133544626
Author: David M. Kroenke, David J. Auer
Publisher: PEARSON
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 2, Problem 2.19RQ

Explanation of Solution

According to the reference of book, the terms “primary key” and “foreign key” are defined as follows:

Primary key:

  • Primary key is like a candidate key in which it uniquely identifies each row in a relation.
    • For example consider that there is an “Employee” table in which “emp_id” is unique so it is chosen as a primary key in database table.
    • In this book, primary keys are underlined.

Foreign key:

  • To maintain the relationship between the database tables, the values are placed from one relation to second relation.
  • The values used in first relation come under the primary key values whereas the values that are referred in second relation come under the foreign key...

Blurred answer
Students have asked these similar questions
What is the meaning of the primary key?
What distinguishes a primary key from a candidate key or a superkey?
How do primary key, candidate key, and superkey differ?
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage