
            with curDT as (select localtimestamp as curDate)
            update BedState
            set BedState_endDate = '2023-07-18 02:15:59'
            where BedState_id = '110101000021024'
        
