I have two separate tables. Table1 contains only 1 column, called date_spine and it has all dates from 2021-01-01 to current date. Table2 contains distinct columns of State, Store. My final goal is to create a new Table which contains all Dates in the Data Spine against every unique State, Store combination. Below is a brief example. I am hoping for SQL Script which will work in Snowflake. Thank you in advance!!
| State | Store | Date_Spine |
|---|---|---|
| IL | Chicago | 2021-01-01 |
| IL | Chicago | 2021-01-02 |
| IL | Chicago | 2021-01-03 |
| IL | Chicago | 2021-01-04 |
| IL | Chicago | 2021-01-05 |
| MO | St Louis | 2021-01-01 |
| MO | St Louis | 2021-01-02 |
| MO | St Louis | 2021-01-03 |
| MO | St Louis | 2021-01-04 |
| MO | St Louis | 2021-01-05 |