I have data with an amount of 1 month and want to change it to 30 days.
if 1 month the amount is 20000 then per day is 666.67
The following are sample data and results:
| Account | Project | Date | Segment | Amount |
|---|---|---|---|---|
| Acc1 | 1 | September 2022 | Actual | 20000 |
Result :
I need a query using sql server

You can use a recursive CTE to generate each day of the month and then divide the amount by the number of days in the month to achive the required output