Loading…
A teammate plans to build a daily stock table by joining inventory_movements to a calendar, on the assumption that it holds one row per product, warehouse, and day. Before the join is written, you are asked to check that grain: what one row of the table stands for.
Return rows_per_day (how many movement rows one combination of , , and has), (the number of combinations with that many rows), and (of those combinations, the number in which the same appears more than once). Order by .
product_idwarehouse_idmovement_atproduct_warehouse_daysdays_with_repeated_typemovement_typerows_per_dayCreate 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.