Wondering if this is possible in big query.
I have a table that returns rules created by employees in a single row like the example below. It's not a very well thought out table and it is what it is.
RuleFrom | RuleTo | Rules |
---|---|---|
2023-05-31 | 2023-06-06 | 10% |
This is what I'm expecting the data to look like.
Are there any way to use the RuleFrom
and RuleTo
dates and then create a new data set with 7 days of daily data like below?
RuleFrom RuleTo Rules
2023-05-31 2023-05-31 10%
2023-06-01 2023-06-01 10%
2023-06-02 2023-06-02 10%
2023-06-03 2023-06-03 10%
2023-06-04 2023-06-04 10%
2023-06-05 2023-06-05 10%
2023-06-06 2023-06-06 10%