Untitled
Anonymous
mysql
10/12/2022 4:05 PM
448 B
18
Indexable
SELECT student_id , min(device_id) as 'device_id' from online_class_situations where course_number>0 group by student_id having min(date); select student_id, device_id from online_class_situations where (student_id,date) in (select student_id,min(date) as date from online_class_situations where course_number>0 group by student_id);
Editor is loading...