code (1)
code (1)
check( source_start_time<destination_end_time)
);
(
Customer_code NUMBER PRIMARY KEY,
);
Train_Code NUMBER(5),
Platform_No NUMBER,
Train_Name VARCHAR2(50),
Train_Arrival DATE,
Train_Departure DATE,
Schedule_arrival DATE,
Train_delay DATE,
);
Train_code number(5),
Pnr_no NUMBER,
Customer_code number,
Station_code varchar2(10) ,
);
increment by 1
nocache
nocycle;
VALUES
-- Call the CalculateTicketPrice function to get the ticket price for a specific customer
DECLARE
v_customer_id NUMBER := 123; -- Replace with the actual customer ID
v_ticket_price FLOAT;
BEGIN
v_ticket_price := CalculateTicketPrice(v_customer_id);
END;
-- Call the UpdateTicketPrice procedure to update the ticket price in the Booked_seat table
DECLARE
BEGIN
UpdateTicketPrice(v_customer_id_to_update, v_pnr_to_update);
END;