i have try to add this query but the system does not accepted. how i can fix it please.
i want update the whole part in booking using join
my tables are i have created table called res as
CREATE TABLE res
AS
   (SELECT booking.car_regestration_num,
           rent.cost_per_day,
           (booking_date - return_day) AS amount
      FROM rent
           JOIN booking
              ON booking.car_regestration_num = rent.car_regestration_num);
and booking table as
CREATE TABLE booking
(
   return_day             DATE NOT NULL,
   booking_date           DATE NOT NULL,
   cus_num                NUMBER REFERENCES customer (cus_num),
   loc_num                NUMBER REFERENCES c_location (loc_num),
   ins_num                NUMBER REFERENCES insurance (ins_num),
   booking_num            NUMBER PRIMARY KEY,
   car_regestration_num   NUMBER REFERENCES cars (car_regestration_num),
   amount                 BINARY_FLOAT
);
i have tried what i show you. i accept solve the problem as much as possible
the purpose of this Q is to add the amount in booking table with values
UPDATE BOOKING JOIN res  
ON BOOKING.CAR_REGESTRATION_NUM = res.CAR_REGESTRATION_NUM
SET BOOKING.amount = res.amount;
 
     
    