Student absent for 5 consecutive days excluding Holidays
问题 I am using code igniter and attendance table as below: attendance ID timestamp student_id status 1 01-01-20 1 P 2 01-01-20 2 P 3 02-01-20 1 P 4 02-01-20 2 A 5 03-01-20 1 P 6 03-01-20 2 A 7 04-01-20 1 H 8 04-01-20 2 H 9 05-01-20 1 P 10 05-01-20 2 A My target is to get the student id who is absent for 3 consecutive days for the period of the last 1 month from today excluding the holidays in the middle like in the above table the student id 2 should be the one with 3 consecutive absence