I really appreciate if you can help me with this. What I need is create every date in one specific range, this is done with the follow query. but I need to assign this range dates per every one row.
--Dates in rage
SELECT DATEADD(DAY, nbr - 1, '2016-02-08')
FROM (
SELECT ROW_NUMBER() OVER(ORDER BY c.object_id) AS Nbr
FROM sys.columns c
) nbrs
WHERE nbr - 1 <= DATEDIFF(DAY, '2016-02-08', '2016-02-11')
Table_A
Jhon
JhonB
JhonC
Table_Calendar (2016-02-08 / 2016-02-11)
2016-02-08
2016-02-09
2016-02-10
2016-02-11
UNION
JHON 2016-02-08
JHON 2016-02-09
JHON 2016-02-10
JHON 2016-02-11
JHONB 2016-02-08
JHONB 2016-02-09
JHONB 2016-02-10
JHONB 2016-02-11
Thanks for your help