<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://beyondrelational.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>TSQL Challenges - All Comments</title><link>http://beyondrelational.com/blogs/tc/default.aspx</link><description>TSQL Challenges intend to help you to test and enhance SET based querying skills using TSQL. </description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4123</link><pubDate>Mon, 15 Mar 2010 17:45:03 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4123</guid><dc:creator>Ramireddy</dc:creator><description>&lt;p&gt;Thanks Jacob, I &amp;nbsp;submitted my solution..&lt;/p&gt;
&lt;p&gt;But isn&amp;#39;t hard-coding will limit the logic testing chances??&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4123" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4121</link><pubDate>Mon, 15 Mar 2010 15:54:37 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4121</guid><dc:creator>Jacob Sebastian</dc:creator><description>&lt;p&gt;Yes, you should hard-code it in the solution. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4121" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4120</link><pubDate>Mon, 15 Mar 2010 14:55:48 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4120</guid><dc:creator>Ramireddy</dc:creator><description>&lt;p&gt;Jacob,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; The output needs to list the schedules between the dates feb20 and feb28. Is it means, are we hard-coding these 2 dates in our solution?? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4120" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4094</link><pubDate>Sun, 14 Mar 2010 10:40:28 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4094</guid><dc:creator>Ramireddy</dc:creator><description>&lt;p&gt;ooops....understood now...thanks..&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4094" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4087</link><pubDate>Sat, 13 Mar 2010 10:05:07 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4087</guid><dc:creator>leszek_g</dc:creator><description>&lt;p&gt;@Ramireddy&lt;/p&gt;
&lt;p&gt;schedule start is Jan13th, not Feb13th&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4087" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4085</link><pubDate>Sat, 13 Mar 2010 07:44:12 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4085</guid><dc:creator>Ramireddy</dc:creator><description>&lt;p&gt;I have a doubt with the output.&lt;/p&gt;
&lt;p&gt;Project meeting sch. start is Feb13th 10:30 and begin time 10:45. &lt;/p&gt;
&lt;p&gt;That means, first time project meeting happened at Feb13th, 10:45 &amp;nbsp;&lt;/p&gt;
&lt;p&gt;and the meeting is scheduled for every 2 days, so , next meetings will be at Feb 15,Feb 17,Feb 19,Feb 21 &lt;/p&gt;
&lt;p&gt;But in the output expected, project meeting is shown as Feb 20.&lt;/p&gt;
&lt;p&gt;what is the reason behind this??&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4085" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4052</link><pubDate>Fri, 12 Mar 2010 12:57:03 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4052</guid><dc:creator>leszek_g</dc:creator><description>&lt;p&gt;Thanks for answers&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4052" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4047</link><pubDate>Fri, 12 Mar 2010 10:19:43 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4047</guid><dc:creator>Jacob Sebastian</dc:creator><description>&lt;p&gt;dishdy is right. You can expect to have correct data as per the pattern reference.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4047" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4046</link><pubDate>Fri, 12 Mar 2010 09:53:01 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4046</guid><dc:creator>dishdy</dc:creator><description>&lt;p&gt;@leszek_g,&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s safe to assume that there will be no invalid data in the schedules table. You should expect only data of the type shown in the list of examples.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4046" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4038</link><pubDate>Fri, 12 Mar 2010 08:48:07 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4038</guid><dc:creator>Jacob Sebastian</dc:creator><description>&lt;p&gt;@leszek,&lt;/p&gt;
&lt;p&gt;&amp;quot;Every N&amp;quot; cannot come with weekends or weekdays. Weekly cannot have a weekday and Every N in the same pattern. Either it will be &amp;#39;weekly every N&amp;#39; where you need to repeat the schedule every N week from the start date or it will be a list of one or more weekdays.&lt;/p&gt;
&lt;p&gt;All the possible combination of patterns are given in the table under section &amp;quot;Pattern reference&amp;quot;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4038" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4024</link><pubDate>Thu, 11 Mar 2010 17:19:22 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4024</guid><dc:creator>leszek_g</dc:creator><description>&lt;p&gt;Can be for example data in the Scheduling table like these rows?&lt;/p&gt;
&lt;p&gt;Combined patterns:&lt;/p&gt;
&lt;p&gt;Daily &amp;#39;Weekends Every N&amp;#39; 3&lt;/p&gt;
&lt;p&gt;Weekly &amp;#39;Mon,Wed,Fri Every N&amp;#39; 2&lt;/p&gt;
&lt;p&gt;Yearly &amp;#39;Last Thu Every Feb Every N&amp;#39;,2&lt;/p&gt;
&lt;p&gt;Not null Val without &amp;#39;Every N&amp;#39; in Pattern:&lt;/p&gt;
&lt;p&gt;Daily &amp;#39;Weekends&amp;#39; 1&lt;/p&gt;
&lt;p&gt;Pattern &amp;#39;Every N&amp;#39; not at end:&lt;/p&gt;
&lt;p&gt;Monthly &amp;#39;Every N Third Tue&amp;#39; 2&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4024" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4015</link><pubDate>Thu, 11 Mar 2010 09:06:07 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4015</guid><dc:creator>Jacob Sebastian</dc:creator><description>&lt;p&gt;For &amp;#39;Every N&amp;#39; recurring pattern, you always start from the start date of the schedule. So the first occurrence will be on the schedule start date and then it will repeat &amp;#39;Every N&amp;#39;. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4015" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4011</link><pubDate>Thu, 11 Mar 2010 08:18:12 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4011</guid><dc:creator>dishdy</dc:creator><description>&lt;p&gt;Leonid,&lt;/p&gt;
&lt;p&gt;I was under the impression that you make the first possible placement in the 20-feb-10 to 28-feb-10 interval and then count from there. But looking at App#3 it appears you count from the task&amp;#39;s Sch.Start date.&lt;/p&gt;
&lt;p&gt;Jacob,&lt;/p&gt;
&lt;p&gt;Can you confirm this?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4011" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#4003</link><pubDate>Wed, 10 Mar 2010 22:50:52 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:4003</guid><dc:creator>Leonid Koyfman</dc:creator><description>&lt;p&gt;I think we need a better definition of &amp;quot;Every N.&amp;quot;&lt;/p&gt;
&lt;p&gt;What point in time should we start to count from? &lt;/p&gt;
&lt;p&gt;Is it Sch.Start for the TaskName? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=4003" width="1" height="1"&gt;</description></item><item><title>re: TSQL Challenge 25 - Appointments and Recurring Schedules</title><link>http://beyondrelational.com/blogs/tc/archive/2010/03/08/tsql-challenge-25-appointments-and-recurring-schedules.aspx#3999</link><pubDate>Wed, 10 Mar 2010 16:41:57 GMT</pubDate><guid isPermaLink="false">6e5011fa-7db5-4df3-bb79-9085c1d333b3:3999</guid><dc:creator>dishdy</dc:creator><description>&lt;p&gt;@leszek_g,&lt;/p&gt;
&lt;p&gt;You are free to hard code those dates any way you like. You can even hard code information derived from those two dates.&lt;/p&gt;
&lt;p&gt;If you use a CTE approach you might want throw these two dates into a table with a single row and possibly any other information you find useful.&lt;/p&gt;
&lt;p&gt;This way you have to do the hard-coding only once.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://beyondrelational.com/aggbug.aspx?PostID=3999" width="1" height="1"&gt;</description></item></channel></rss>