# Write your MySQL query statement below select distinct s1.* from stadium s1, stadium s2, stadium s3 where (s1.id + 1 = s2.id and s2.id + 1 = s3.id and s1.people >= 100 and s2.people >= 100 and s3.people >= 100) or (s1.id - 1 = s2.id and s2.id - 1 = s3.id and s1.people >= 100 and s2.people >= 100 and s3.people >= 100) or (s1.id - 1 = s2.id and s1.id + 1 = s3.id and s1.people >= 100 and s2.people >= 100 and s3.people >= 100) order by visit_date asc ;
原文:https://www.cnblogs.com/letlifestop/p/12580336.html