I have a table which contains name
, location
, start_date
, and end_date
. I am looking to transform these rows containing date ranges to rows of discrete dates while keeping corresponding row information intact.
Example:
Name1, Location1, 2015-4-01, 2015-4-04
Becomes:
Name1, Location1, 2015-4-01
Name1, Location1, 2015-4-02
Name1, Location1, 2015-4-03
Name1, Location1, 2015-4-04
I imagine that I'll need to create this as a new table using PostgreSQL functions.