Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12201

populate month-Year columns using given start date dynamically

$
0
0

I am trying to build a dynamically table with columns when we supply a start date

i.e.

Source Table like this:

Income#recurrent incomeno of recurrencesincome start date
11000052024/01/28

The output required:

Income#income start date2024-012024-022024-032024-042024-05
12024/01/281000010000100001000010000

Please help if anyone has idea of how to build a SQL script. thanks

I tried CTE function, it did not work


Viewing all articles
Browse latest Browse all 12201

Trending Articles