I am trying to create a table in Oracle SQL by querying another table which was not constracted well. I have the following data in my original table for example:
Deal No. Start Date End Date Value
1256 20.01.22 25.01.22 10,000
1489 23.01.22 27.01.22 5,000
I need to create a table using a select statement with a value for each day for each deal so that the results look like this:
Deal No. Date Value
1256 20.01.22 10,000
1256 21.01.22 10,000
1256 22.01.22 10,000
1256 23.01.22 10,000
1489 23.01.22 5,000
1489 24.01.22 5,000
1489 25.01.22 5,000
1489 26.01.22 5,000
1489 27.01.22 5,000
This table is now much easier to query for the end user.
Any assistance much appreciated.
Regards
Herbz