I want to calculate the sum of value + service fees from a table booking and bill
and the table of bill
CREATE TABLE BILL (BILL_NUM ,SERVICE_FEES,TOTAL_AMOUNT
BILL_DATE ,BOOKING_NUM number REFERENCES BOOKING(BOOKING_NUM)
)
my booking table contain attribute of (returndate,bookingdate,references customer(cusnum), references location(locnum), references insurance (insurancenum), bookingnum, references cars(car-regestrtion-num), amount )
UPDATE BILL AS A
JOIN BOOKING AS B ON A.Booking_num = B.Booking_num
SET A.Total_Amount = B.amount + A.Service_Fees;
please help me to fix the error