Bundle: Database Systems Design, Implementation, & Management, Loose-leaf Version, 13th + MindTapV2.0, 1 term Printed Access Card
13th Edition
ISBN: 9780357475188
Author: Coronel, Carlos, Morris, Steven
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Textbook Question
Chapter 3, Problem 14P
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.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
The option for referential integrity between the Owner table and the Pet table is cascade and an attempt is made to update the row for Owner 005 in the Owner table (OwnerNum = 005) to have a new OwnerNum of 500. What is the result? (Use only the data in the question. Do not assume other data exists if it is not present in the tables below.) The primary keys are underlined. These are the OwnerNum column in the Owner table and the PetNumber in the Pet table. The foreign key is italicized. This is the OwnerNum column in the Pet table.
Owner Table
OwnerNum
LastName
FirstName
Address
City
State
Zip
005
Smith
Jim
100 Main
Dune
FL
37465
009
Jones
Jane
3245 West
Sanford
FL
32773
012
Johnson
Frank
2 Century
Easton
FL
37256
020
Doe
Sally
101 Basel
Orange
FL
30998
Pet Table
PetNumber
PetName
DOB
Species
OwnerNum
100
Fido
1/1/2005
Canine
009
200
Ajax
12/3/2003
Canine
020
300
Sunshine
6./12/2004…
The option for referential integrity between the Owner table and the Pet table is cascade and an attempt is made to delete the row for owner number 012 in the Owner table. What is the result? (Use only the data in the question. Do not assume other data exists if it is not present in the tables below.) The primary keys are underlined. These are the OwnerNum column in the Owner table and the PetNumber in the Pet table. The foreign key is italicized. This is the OwnerNum column in the Pet table.
Owner Table
OwnerNum
LastName
FirstName
Address
City
State
Zip
005
Smith
Jim
100 Main
Dune
FL
37465
009
Jones
Jane
3245 West
Sanford
FL
32773
012
Johnson
Frank
2 Century
Easton
FL
37256
020
Doe
Sally
101 Basel
Orange
FL
30998
Pet Table
PetNumber
PetName
DOB
Species
OwnerNum
100
Fido
1/1/2005
Canine
009
200
Ajax
12/3/2003
Canine
020
300
Sunshine
6./12/2004
Feline
009
400
King…
You have the following tables:
APARTMENTS (ADDRESS, CITY, STATE, RENTER_ID, RENTER_LAST_NAME)
RENTERS (RENTER_ID, FIRST_NAME, LAST_NAME)
What is the primary key for the APARTMENTS table? (It may be a composite key involving 2 or more fields) What are the foreign keys, if any?
What is the primary key for the RENTERS table? What are the foreign keys, if any?
What field in RENTERS can be eliminated so that the RENTERS table is normalized?
Chapter 3 Solutions
Bundle: Database Systems Design, Implementation, & Management, Loose-leaf Version, 13th + MindTapV2.0, 1 term Printed Access Card
Ch. 3 - What is the difference between a database and a...Ch. 3 - Prob. 2RQCh. 3 - Prob. 3RQCh. 3 - What are the requirements that two relations must...Ch. 3 - Which relational algebra operators can be applied...Ch. 3 - Explain why the data dictionary is sometimes...Ch. 3 - A database user manually notes that The file...Ch. 3 - Prob. 8RQCh. 3 - Prob. 9RQCh. 3 - Prob. 10RQ
Ch. 3 - Prob. 11RQCh. 3 - Prob. 12RQCh. 3 - Use Figure Q3.13 to answer Questions 1317. FIGURE...Ch. 3 - Create the table that results from applying a...Ch. 3 - Write the relational algebra formula to apply an...Ch. 3 - Create the table that results from applying an...Ch. 3 - Using the tables in Figure Q3.13, create the table...Ch. 3 - Prob. 18RQCh. 3 - Prob. 19RQCh. 3 - Prob. 20RQCh. 3 - Identify and describe the components of the table...Ch. 3 - Identify the primary keys. FIGURE Q3.22 THE...Ch. 3 - Identify the foreign keys. FIGURE Q3.22 THE...Ch. 3 - Create the ERM. FIGURE Q3.22 THE CH03_THEATER...Ch. 3 - Create the relational diagram to show the...Ch. 3 - Prob. 26RQCh. 3 - What would be the conceptual view of the INDEX...Ch. 3 - Prob. 1PCh. 3 - Prob. 2PCh. 3 - Do the tables exhibit referential integrity?...Ch. 3 - Describe the type(s) of relationship(s) between...Ch. 3 - Prob. 5PCh. 3 - Prob. 6PCh. 3 - Prob. 7PCh. 3 - Prob. 8PCh. 3 - Create the relational diagram to show the...Ch. 3 - Prob. 10PCh. 3 - Prob. 11PCh. 3 - Create the relational diagram to show the...Ch. 3 - Prob. 13PCh. 3 - Do the tables exhibit referential integrity?...Ch. 3 - Prob. 15PCh. 3 - Prob. 16PCh. 3 - For each table, identify the primary key and the...Ch. 3 - Prob. 18PCh. 3 - Do the tables exhibit referential integrity?...Ch. 3 - Identify the TRUCK tables candidate key(s). FIGURE...Ch. 3 - For each table, identify a superkey and a...Ch. 3 - Prob. 22PCh. 3 - Prob. 23PCh. 3 - Prob. 24PCh. 3 - Create the ERD. (Hint: Look at the table contents....Ch. 3 - Prob. 26PCh. 3 - Prob. 27PCh. 3 - Prob. 28PCh. 3 - Create the table that would result from applying...Ch. 3 - Create the table that would result from applying...Ch. 3 - Create the table that would result from applying a...
Knowledge Booster
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
- Write SQL code for To Extend the code in ( Perform a LEFT OUTER JOIN between the tables Wicketkeeping and Batting. You may select any column(s). Look at the result and state how many wicketkeepers have not played as batsmen (no need to write code for this part) To show the name of the wicketkeeper(s) who have not played as a batsman. (syntax to check a NULL value in a column is: WHERE ColumnName IS NULL ) ?arrow_forwardI am trying to get rid of duplicate rows in SQL. This is the current code I'm using. Please help me to write a code to create a new table without the duplicates. Select EmployeeID, Username, FirstName, LastName, RoleName, RoleDescription, Count(*) as '# of Duplicates' From [dbo].[vw_MyAccessInfo] Group by EmployeeID, Username, FirstName, LastName, RoleName,RoleDescription Having Count(*) > 1 Select * from [dbo].[vw_MyAccessInfo] Select distinct * from [dbo].[vw_MyAccessInfo]arrow_forwardAll the queries should be executed in MySQL and Screen Shot has to be attached for each question.arrow_forward
- The option for referential integrity between the Owner table and the Pet table is restrict. An attempt is made to delete the row for owner number 012 in the Owner table. What is the result? (Use only the data in the tables below. Do not assume other data exists if it is not present in the tables below.) The primary keys are underlined. These are the OwnerNum column in the Owner table and the PetNumber in the Pet table. The foreign key is italicized. This is the OwnerNum column in the Pet table. Owner Table OwnerNum LastName FirstName Address City State Zip 005 Smith Jim 100 Main Dune FL 37465 009 Jones Jane 3245 West Sanford FL 32773 012 Johnson Frank 2 Century Easton FL 37256 020 Doe Sally 101 Basel Orange FL 30998 Pet Table PetNumber PetName DOB Species OwnerNum 100 Fido 1/1/2005 Canine 009 200 Ajax 12/3/2003 Canine 020 300 Sunshine 6./12/2004 Feline 009 400 King…arrow_forwardProduce a list of all customer names in which the first letter of the first and last names is in uppercase and the rest are in lowercase. (refer to the tables in the JustLee Books database.)arrow_forwardUsing the corrected code from Step 28, include the Select into a temporary table named temptable. Prove your creation by run running a list from temptable where the title includes the characters eng. Hint: wildcard characters needed on your where clause. corrected code from step 28: select last_name, first_name, title, max(t.to_date), dept_name from employees e join titles t on e.emp_no = t.emp_no join dept_emp de on e.emp_no = de.emp_no join departments d on de.dept_no = d.dept_no group by e.emp_no order by last_name, first_name;arrow_forward
- Problem: Having created the table structure in Problem 1, write the SQL code to enter the first two rows for the table shown in Figure P8.2. Each row should be inserted individually, without using a subquery. Insert the rows in the order that they are listed in the figure.I gor an error: RROR 1062 (23000) at line 1: Duplicate entry '101' for key 'PRIMARY' when I used this script below, I got an error. see image.ERROR 1062 (23000) at line 1: Duplicate entry '101' for key 'PRIMARY' INSERT INTO EMP_1 VALUES ('101','News','John','G','2000-11-08','502');INSERT INTO EMP_1 VALUES ('102','Senior','David','H','1989-07-12','501');arrow_forwardList unique first (first_name) and last names (last_name) of customers (CUSTOMER table) who rented a movie (RENTAL table) between '2011-06-01' and '2012-01-01’ (rental_date). Sort by last_name. The common key is CUSTOMER_ID.arrow_forwardConsider the employee table containing five columns - "Id","Name", "Salary","Designation" and "Experience" in the format given below. Write a query to display the names of employees who are having more than 5 years of experience over the average experience of all the employees and whose salary is greater than 25000. Display the result by sorting the records based on the Id of employees in the asending order. The code should run on Mysql. Employee:- Column Type Id int(10) Name varchar(20) Salary int(20) Designation varchar(20) Exp_In_Years Decimal(3,2) Sample Input:- Employee Id Name Salary Designation Exp_In_Years 101 Rajesh 13000 System Engg 3 102 Pritam 5000 System Engg 5 104 Ramesh 40000 Manager 10 105 John 30000 Lead 15 106 Anjali 20000 IT Analyst 10 103 Sudeep 10000 Lead 8 107 Vicky 80000 Lead 20 Sample output:- Vickyarrow_forward
- Write and execute a SQL query to list all patient numbers and encounter ids which do not have any data (missing rows) in VisitSummary table. Order the result by patient number, encounter id. Write and execute a SQL query to list all patients whose information about race or gender has changed during their future visits. A future visit is defined as T1.encounter_id < T2.encounter_id. Your output should have patient number, old and new race values, old and new gender values, and the encounter ids. Write and execute a SQL query to list all the patient data for all encounters. Even if patient data is missing in other tables, you still need to list the patient_nbr and encounter_id in your output. Your output should list all the columns (without repeating them) starting with encounter_id, patient_nbr... and it should be ordered by patient_nbr and then encounter_id. Write and execute a SQL query to list all the patient data for all encounters. If the patient data is missing…arrow_forwardThere are ten columns in the table "customer," yet there is no row. A total of 10 new rows are added to the table, while 3 old ones are removed. What is the table 'customer's' degree and cardinality?arrow_forwardConsidering Vaccination Database, write queries to: Display the Subject CNIC, Name, Contact, Dose1 Center, and Dose2 Center as shown below: CNIC Name Contact Dose1 Center Dose2 Center 22401-6645321-1 Nasir 3409991112 Lachi Kohat 2 14301-6045321-5 Shahab 3409991112 kohat 3 Dara The subjects who have been vaccinated different types in Dose1 and Dose2. For instance, subjects who were vaccinated ‘Sinovac’ in the first dose, while Pfizer in the second dose.How many Viles of each type have been consumed so far. How many subjects are vaccinated from expired viles. Suggest the name of Incharge for the best performance award based on the highest number of subjects vaccinated on a single dayarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage Learning
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
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
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
SQL Basics for Beginners | Learn SQL | SQL Tutorial for Beginners | Edureka; Author: edureka;https://www.youtube.com/watch?v=zbMHLJ0dY4w;License: Standard YouTube License, CC-BY