﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2012 / SQL Server 2012 -  T-SQL  / Help with a While/Loop Query / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 03:16:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Help with a While/Loop Query</title><link>http://www.sqlservercentral.com/Forums/Topic1416461-3077-1.aspx</link><description>dont cross post, it fragments replies and wastes peoples timeall replies here [url]http://www.sqlservercentral.com/Forums/Topic1416459-1292-1.aspx[/url]</description><pubDate>Wed, 06 Feb 2013 06:35:16 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>Help with a While/Loop Query</title><link>http://www.sqlservercentral.com/Forums/Topic1416461-3077-1.aspx</link><description>Good MorningI am new to T-Sql and I have been taske with creating a simple Time table with four columns:Date date not null,CalendarYear int not null,CalendarMonth varchar (30) not null,FinancialYear int not null,FinancialMonth varchar (30) not null)And what I would like to do is populate the Date column with dates from 01/01/2011 upto 31/03/2015 and the other columns will self populate:Example:Date           CalendarYear CalendarMonth FinancialYear FinancialMonth01 Jan 2011      2011            January            2010            January02 Jan 2011      2011            January            2010            January03 Jan 2011      2011            January            2010            January04 Jan 2011      2011            January            2010            January05 Jan 2011      2011            January            2010            JanuaryCan you help?ThanksWayne </description><pubDate>Wed, 06 Feb 2013 06:14:57 GMT</pubDate><dc:creator>wafw1971</dc:creator></item></channel></rss>