Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In trying to delete from the employee table, what is the cause of this error: Query failed because of: error: update or delete on table

In trying to delete from the employee table, what is the cause of this error: "Query failed because of: error: update or delete on table "employee"
violates foreign key constraint "customer_support_rep_id_fkey" on table
"customer"?
a.)
The customer table data has to be deleted first or have the support_rep_id updated to a different rep.
b.)
The customer_id in the customer table has to match the employee_id table.
c.)
The support_rep_id in the employee table doesn't exist.
d.)
The report_to column links to the employee_id in the employee table that has the value that exists.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions