select avg(if(datediff(date2,date1)=1,1,0)) as avg_ret from (select distinct device_id, date as date1, lead(date,1)over(partition by device_id order by date) as date2 from (select distinct device_id, date from question_practice_detail) as uniq_id_date) as id_last_next_date tmd,这题开了眼了。题目:用户在某天刷题后第二天再...