Gap Months — SQL
For each shop, compare each month's revenue with the month before it, treating a month without sales as zero; list only months with sales.
SQL · Hard
For each shop, compare each month's revenue with the month before it, treating a month without sales as zero; list only months with sales.
SQL · Hard