hai Anandm
for my explaination before..
i want to scheme for each vehicle_id with empty end_date_time will update with begin_date_time when i add new record with same vehicle
for short explanation just like this?
no. vehicle_id begin_date_time end_date_time active
1 1 2017-04-13 null 1
when i add new
vehicle_id= 1
begin_date_time = 2017-04-13 (when save this date update/ insert to end_date time for no 1
end_date_time = null
active = 1