Home >Backend Development >PHP Tutorial >Mysql group query queries that a field in the first 40 pieces of data in each group cannot have more than 8 consecutive empty records. Please give guidance.
The data structure is as shown in the figure:
Here is grouping and querying the first 40 records, but I don’t know how to start with the subsequent conditions. The condition is that sk_id cannot have 8 consecutive empty records