SELECT t1.user_id, t1.room_id, t2.room_type, DATEDIFF(t1.checkout_time, t1.checkin_time) AS days FROM checkin_tb AS t1 LEFT JOIN guestroom_tb AS t2 ON t1.room_id = t2.room_id WHERE t1.checkin_time > '2022-06-12' HAVING days >=2 ORDER BY days,t1.room_id,t1.user_id desc