Skip to content
Advertisement

Split multi-month records into individual months

I have data in a table in this format – where date range is multi-month:

I want to create a view/ insert into a new table – the above record broken by month as shown below:

Please advise.

Advertisement

Answer

Just another option using a CROSS APPLY and an ad-hoc tally table

Example

Returns

enter image description here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement