Loading…
A model that reports how rentals rise and fall around the clock assumes the hour table has 24 rows for every date it covers. A row count says otherwise: 2,922 is not a multiple of 24. Before deciding whether rentals were lost, find out exactly which rows are absent.
dteday, missing_hr, hourly_rows (the number of rows the hour table has for that date), hourly_rentals (the sum of cnt over those rows), and daily_rentals (cnt for that date in the day table), with one row for each date in the hour table and each hr from 0 to 23 that has no row. Order by dteday, then missing_hr.Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.