Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

INSERT INTO Billing ( BillingID , RecordID, PatientID, TotalAmount, PaymentStatus ) VALUES ( 1 , 1 , 1 , 2 0 0 . 0 0

INSERT INTO Billing (BillingID, RecordID, PatientID, TotalAmount, PaymentStatus)
VALUES
(1,1,1,200.00, 'Paid'),
(2,2,2,150.00, 'Paid'),
(3,3,3,100.00, 'Paid'),
(4,4,4,250.00, 'Paid'),
(5,5,5,300.00, 'Paid'),
(6,6,1,175.00, 'Paid'),
(7,7,3,125.00, 'Paid'),
(8,8,5,225.00, 'Paid'); *** I keep getting this error code in sql how do i fix it ?02510:58:19 INSERT INTO Billing VALUES
(1,1,1,200.00, 'Paid'),
(2,2,2,150.00, 'Paid'),
(3,3,3,100.00, 'Paid'),
(4,4,4,250.00, 'Paid'),
(5,5,5,300.00, 'Paid'),
(6,6,1,175.00, 'Paid'),
(7,7,3,125.00, 'Paid'),
(8,8,5,225.00, 'Paid') Error Code: 1452. Cannot add or update a child row: a foreign key constraint fails (`healthcare`.`billing`, CONSTRAINT `billing_ibfk_1` FOREIGN KEY (`Record_ID`) REFERENCES `medicalrecord`(`Record_ID`))0.000 sec

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

Step: 3

blur-text-image

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

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

Which diagnostic test is most commonly used to confirm PROM?

Answered: 1 week ago

Question

What is the hallmark clinical feature of a molar pregnancy?

Answered: 1 week ago