sales forecasting
Go to file
2020-10-22 23:56:45 -04:00
sql basic tables setup 2020-10-22 23:56:45 -04:00
readme.md basic tables setup 2020-10-22 23:56:45 -04:00

the basic assumption is a single sales table is available to work with that has a lot of related data that came from master data tables originally. the goal then is to break that back apart to whatever degree is necessary.

  • run schema.sql and perd.sql to setup basic tables
  • create a table fc.live as copied from target
  • run target_info.sql to populate the fc.target_meta table that holds all the columns and their roles
  • fill in flags on table fc.target_meta to show how the data is related
  • run build_master_tables.sql to generate foreign key based master data