kienvu-luxstay
12/23/2018 - 2:37 PM

actual date of booking

actual date of booking

case 
    when cancelled_at <> '(err)' then cancelled_at
    when accepted_at <> '(err)' then accepted_at
    when declined_at <> '(err)' then declined_at
    else bookings.updated_at
end updated_time

from bookings