MySQL query to find the customers who have placed orders on consecutive days
I am trying to get the ids of the customers who have placed orders on consecutive days. The table is created as follows: create table orders( orderid INT, orderdate date, customerid int ); The values: insert into orders (orderid, orderdate,…