Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Convert Month to Range of Dates

$
0
0

Hi All,

I need help it writing a T-SQL which converts a single month into the all the dates of that month.

I tried and tried, and  nothing came to my brain. I need from experts like you.

Table Data

P_Status

MonthDaily ProdUnit

Jan-141 4

Feb-143 6

The output needs to be like this 

MonthDaily ProdUnit

1/1/20141 4

1/2/20141 4

.

.

.

1/31/201414

2/1/20143 6

2/2/20143 6

.

.

.

2/28/2014 36

Thanks in advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>