What is the right syntax for creating a transaction base on date range.
for ex. this is my date set
Table
DocID Date1 Date2
0001 2020-01-01 2020-01-03
and this is what i want to achieve since (Date1)-(Date2) = 2 that's why we have 2020-01-02 and 2020-01-03 in dateref and uses the same DocID
DocID Date1 Date2 DateRefThanks
0001 2020-01-01 2020-01-03 2020-01-02
0001 2020-01-01 2020-01-03 2020-01-03