Skip to content
Exercise · Final project: interview tasks · lesson 8 of 8

★ Exercise: orders on several days in a row

Write a query that finds the guests who ordered on three days in a row or longer. For each such streak of days, return the guest's name, the first and the last day of the streak and the number of days in it: columns name, first_day, last_day and days.