1- For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None. 2. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer. 3. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer. Write NA (Not Applicable) if the table does not have a foreign key

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 11RQ
icon
Related questions
Question

1- For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None.

2. Do the tables exhibit entity integrity? Answer yes or no, and then explain your answer.

3. Do the tables exhibit referential integrity? Answer yes or no, and then explain your answer. Write NA (Not Applicable) if the table does not have a foreign key

FIGURE P3.1 THE CH03_STORECO DATABASE TABLES
Table name: EMPLOYEE
EMP_CODE EMP_TITLE EMP_LNAME EMP_FNAME EMP INITIAL EMP_DOB STORE_CODE
W
21-May-84
09-Feb-89
02-Oct-81
1 Mr.
2 Ms.
3 Ms.
4 Mrs.
5 Mr.
6 Mr.
7 Mr.
8 Ms.
9 Mr.
10 Mrs.
11 Mr.
12 Mr.
13 Mr.
14 Ms.
15 Mr.
16 Mr.
17 Ms.
18 Mr.
19 Mr.
20 Mr.
21 Ms.
Williamson John
Ratula
Nancy
Greenboro Lottie
Rumpersfro Jennie
Robert
Cary
Roberto
Elizabeth
Smith
Renselaer
Ogallo
Johnsson
Eindsmar
Jones
Broderick
Washington
1 East
2 West
Smith
Smith
Olenko
Archialo
Grimaldo
Rosenberg
Rosten
Mckee
Baumann
Table name: STORE
STORE_CODE STORE_NAME
1 Access Junction
2 Database Corner
3 Tuple Charge
4 Attribute Alley
5 Primary Key Point
Table name: REGION
REGION_CODE REGION_DESCRIPT
Jack
Rose
Tom
Alan
Peter
Sherry
Howard
Barry
Jeanine
Andrew
Peter
Robert
Jennifer
RSLAS
986783.22
944568.56
2930098.45
W
R
Y
N
H
U
V
K
D
F
S
A
Database name: Ch03_StoreCo
01-Jun-91
23-Nov-79
25-Dec-85
31-Jul-82
10-Sep-88
19-Apr-75
06-Mar-86
21-Oct-92
08-Sep-94
25-Aug-84
25-May-86
24-May-84
03-Sep-80
12-Nov-90
STORE_YTD_SALES REGION_CODE EMP_CODE
1003455.76
1421987.39
24-Jan-91
03-Oct-88
06-Mar-90
11-Dec-94
2
2
1
2
1
82
12
7
35
15
3
2
4
5
3
1
3
1
2
4
3
2
3
4
5
5
4
4
4
1
3
Transcribed Image Text:FIGURE P3.1 THE CH03_STORECO DATABASE TABLES Table name: EMPLOYEE EMP_CODE EMP_TITLE EMP_LNAME EMP_FNAME EMP INITIAL EMP_DOB STORE_CODE W 21-May-84 09-Feb-89 02-Oct-81 1 Mr. 2 Ms. 3 Ms. 4 Mrs. 5 Mr. 6 Mr. 7 Mr. 8 Ms. 9 Mr. 10 Mrs. 11 Mr. 12 Mr. 13 Mr. 14 Ms. 15 Mr. 16 Mr. 17 Ms. 18 Mr. 19 Mr. 20 Mr. 21 Ms. Williamson John Ratula Nancy Greenboro Lottie Rumpersfro Jennie Robert Cary Roberto Elizabeth Smith Renselaer Ogallo Johnsson Eindsmar Jones Broderick Washington 1 East 2 West Smith Smith Olenko Archialo Grimaldo Rosenberg Rosten Mckee Baumann Table name: STORE STORE_CODE STORE_NAME 1 Access Junction 2 Database Corner 3 Tuple Charge 4 Attribute Alley 5 Primary Key Point Table name: REGION REGION_CODE REGION_DESCRIPT Jack Rose Tom Alan Peter Sherry Howard Barry Jeanine Andrew Peter Robert Jennifer RSLAS 986783.22 944568.56 2930098.45 W R Y N H U V K D F S A Database name: Ch03_StoreCo 01-Jun-91 23-Nov-79 25-Dec-85 31-Jul-82 10-Sep-88 19-Apr-75 06-Mar-86 21-Oct-92 08-Sep-94 25-Aug-84 25-May-86 24-May-84 03-Sep-80 12-Nov-90 STORE_YTD_SALES REGION_CODE EMP_CODE 1003455.76 1421987.39 24-Jan-91 03-Oct-88 06-Mar-90 11-Dec-94 2 2 1 2 1 82 12 7 35 15 3 2 4 5 3 1 3 1 2 4 3 2 3 4 5 5 4 4 4 1 3
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Arrays
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.
Similar questions
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage