<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Query to Find First and Last Day of Current Month</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:12:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Rao Y. Kunche</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-241362</link>
		<dc:creator><![CDATA[Rao Y. Kunche]]></dc:creator>
		<pubDate>Fri, 20 Jan 2012 16:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-241362</guid>
		<description><![CDATA[The Examples provided above are really useful.

Thanks,
Rao Y. Kunche]]></description>
		<content:encoded><![CDATA[<p>The Examples provided above are really useful.</p>
<p>Thanks,<br />
Rao Y. Kunche</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ANU PRAKASH</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-233521</link>
		<dc:creator><![CDATA[ANU PRAKASH]]></dc:creator>
		<pubDate>Sun, 08 Jan 2012 12:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-233521</guid>
		<description><![CDATA[declare @i int
set @i = 1
declare @date smalldatetime
drop table #days
create table #days(day_i smalldatetime)
set @date= &#039;02/01/2011&#039;
insert into #days values(@date)
while (@i&lt;31)
BEGIN
--select @date+1
insert into #days values(@date+1)
set @i = @i+1
set @date = @date +1

END

delete from #days where datepart(M,day_i)  datepart(M,&#039;02/01/2012&#039;)
select * from #days

select min(day_i) as first_day,max(day_i) as last_day
from #days]]></description>
		<content:encoded><![CDATA[<p>declare @i int<br />
set @i = 1<br />
declare @date smalldatetime<br />
drop table #days<br />
create table #days(day_i smalldatetime)<br />
set @date= &#8217;02/01/2011&#8242;<br />
insert into #days values(@date)<br />
while (@i&lt;31)<br />
BEGIN<br />
&#8211;select @date+1<br />
insert into #days values(@date+1)<br />
set @i = @i+1<br />
set @date = @date +1</p>
<p>END</p>
<p>delete from #days where datepart(M,day_i)  datepart(M,&#8217;02/01/2012&#8242;)<br />
select * from #days</p>
<p>select min(day_i) as first_day,max(day_i) as last_day<br />
from #days</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prabhakaran</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-232856</link>
		<dc:creator><![CDATA[Prabhakaran]]></dc:creator>
		<pubDate>Sat, 07 Jan 2012 10:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-232856</guid>
		<description><![CDATA[Hi,
   
     I need a Financial year end date for my report ie., Today date is &#039;2012-01-07&#039; then Financial year end date should be &#039;2012-03-31&#039; similarly if today date is &#039;2012-04-01&#039; then Financial year end date should be &#039;2013-03-31&#039;. Please help me out....]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>     I need a Financial year end date for my report ie., Today date is &#8217;2012-01-07&#8242; then Financial year end date should be &#8217;2012-03-31&#8242; similarly if today date is &#8217;2012-04-01&#8242; then Financial year end date should be &#8217;2013-03-31&#8242;. Please help me out&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhari</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-210478</link>
		<dc:creator><![CDATA[dhari]]></dc:creator>
		<pubDate>Sun, 04 Dec 2011 07:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-210478</guid>
		<description><![CDATA[hi,
how to find the last wednesday date from any given date?]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
how to find the last wednesday date from any given date?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AnnB</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-178965</link>
		<dc:creator><![CDATA[AnnB]]></dc:creator>
		<pubDate>Fri, 14 Oct 2011 20:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-178965</guid>
		<description><![CDATA[Thank you! Just what I needed.]]></description>
		<content:encoded><![CDATA[<p>Thank you! Just what I needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-168319</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 15 Sep 2011 10:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-168319</guid>
		<description><![CDATA[You can also use

select 
dateadd(month,datediff(month,0,getdate()),0),
dateadd(month,datediff(month,0,getdate())+1,-1)]]></description>
		<content:encoded><![CDATA[<p>You can also use</p>
<p>select<br />
dateadd(month,datediff(month,0,getdate()),0),<br />
dateadd(month,datediff(month,0,getdate())+1,-1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: k</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-168055</link>
		<dc:creator><![CDATA[k]]></dc:creator>
		<pubDate>Wed, 14 Sep 2011 16:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-168055</guid>
		<description><![CDATA[select &#039;FirstDay Of The Month&#039; as &#039;Text&#039;,convert(varchar,dateadd(d,-(day(getdate()-1)),getdate()),106) &#039;Date&#039;
union all
select &#039;LastDay Of The Month&#039;,convert(varchar,dateadd(d,-day(getdate()),dateadd(m,1,getdate())),106)]]></description>
		<content:encoded><![CDATA[<p>select &#8216;FirstDay Of The Month&#8217; as &#8216;Text&#8217;,convert(varchar,dateadd(d,-(day(getdate()-1)),getdate()),106) &#8216;Date&#8217;<br />
union all<br />
select &#8216;LastDay Of The Month&#8217;,convert(varchar,dateadd(d,-day(getdate()),dateadd(m,1,getdate())),106)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-163564</link>
		<dc:creator><![CDATA[Stephan]]></dc:creator>
		<pubDate>Tue, 30 Aug 2011 09:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-163564</guid>
		<description><![CDATA[Hy madhivanan! 

great - thank you! it works really good.]]></description>
		<content:encoded><![CDATA[<p>Hy madhivanan! </p>
<p>great &#8211; thank you! it works really good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-162179</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 26 Aug 2011 09:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-162179</guid>
		<description><![CDATA[This will do it

select dateadd(month,number,dateadd(year,datediff(year,-1,getdate()),0))  from master..spt_values
where type=&#039;p&#039; and number between 0 and 11]]></description>
		<content:encoded><![CDATA[<p>This will do it</p>
<p>select dateadd(month,number,dateadd(year,datediff(year,-1,getdate()),0))  from master..spt_values<br />
where type=&#8217;p&#8217; and number between 0 and 11</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-161754</link>
		<dc:creator><![CDATA[Stephan]]></dc:creator>
		<pubDate>Thu, 25 Aug 2011 10:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-161754</guid>
		<description><![CDATA[hy,
cool it works, but i would need a code which gives me the first day of every month in the next years ...

thank you for your help!

stephan]]></description>
		<content:encoded><![CDATA[<p>hy,<br />
cool it works, but i would need a code which gives me the first day of every month in the next years &#8230;</p>
<p>thank you for your help!</p>
<p>stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158341</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Aug 2011 11:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158341</guid>
		<description><![CDATA[select 
dateadd(month,datediff(month,0,getdate()),0) as first_day,
dateadd(month,datediff(month,-1,getdate()),-1) as last_day

You may alos need to read this for more informations
http://beyondrelational.com/blogs/madhivanan/archive/2010/06/21/understanding-datetime-column-part-iii.aspx]]></description>
		<content:encoded><![CDATA[<p>select<br />
dateadd(month,datediff(month,0,getdate()),0) as first_day,<br />
dateadd(month,datediff(month,-1,getdate()),-1) as last_day</p>
<p>You may alos need to read this for more informations<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2010/06/21/understanding-datetime-column-part-iii.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2010/06/21/understanding-datetime-column-part-iii.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158340</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Aug 2011 11:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158340</guid>
		<description><![CDATA[select date-day(date)+1 from
(
select getdate()-day(getdate()) as date
) as t]]></description>
		<content:encoded><![CDATA[<p>select date-day(date)+1 from<br />
(<br />
select getdate()-day(getdate()) as date<br />
) as t</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158333</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Aug 2011 11:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158333</guid>
		<description><![CDATA[Try this code

select dateadd(month,datediff(month,0,getdate()),0)]]></description>
		<content:encoded><![CDATA[<p>Try this code</p>
<p>select dateadd(month,datediff(month,0,getdate()),0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158332</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 17 Aug 2011 11:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158332</guid>
		<description><![CDATA[select dateadd(day,-number,getdate()) from master..spt_values
where type=&#039;p&#039; and number between 0 and 6]]></description>
		<content:encoded><![CDATA[<p>select dateadd(day,-number,getdate()) from master..spt_values<br />
where type=&#8217;p&#8217; and number between 0 and 6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kuldeep Dwivedi</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158301</link>
		<dc:creator><![CDATA[Kuldeep Dwivedi]]></dc:creator>
		<pubDate>Wed, 17 Aug 2011 10:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-158301</guid>
		<description><![CDATA[Can anyone  please help me to print last seven days dates in sql. like below
today- 17/8/2011
16/8/2011
15/8/2011
14/8/2011
......]]></description>
		<content:encoded><![CDATA[<p>Can anyone  please help me to print last seven days dates in sql. like below<br />
today- 17/8/2011<br />
16/8/2011<br />
15/8/2011<br />
14/8/2011<br />
&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhcruzr</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-154148</link>
		<dc:creator><![CDATA[jhcruzr]]></dc:creator>
		<pubDate>Fri, 05 Aug 2011 14:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-154148</guid>
		<description><![CDATA[How do I get the first day of the previous month without using the DateDiff function?]]></description>
		<content:encoded><![CDATA[<p>How do I get the first day of the previous month without using the DateDiff function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-153734</link>
		<dc:creator><![CDATA[Stephan]]></dc:creator>
		<pubDate>Thu, 04 Aug 2011 15:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-153734</guid>
		<description><![CDATA[Hy, cool stuff! Perhaps you can help me with my problem. i need a query for getting the first day of any month as a a start day. 

can you perhaps help me?

cheers stephan]]></description>
		<content:encoded><![CDATA[<p>Hy, cool stuff! Perhaps you can help me with my problem. i need a query for getting the first day of any month as a a start day. </p>
<p>can you perhaps help me?</p>
<p>cheers stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian the Ledge</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-147866</link>
		<dc:creator><![CDATA[Cristian the Ledge]]></dc:creator>
		<pubDate>Wed, 13 Jul 2011 04:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-147866</guid>
		<description><![CDATA[Thanks PinalDave, you&#039;re a ledge, you saved me doing any actual work!!]]></description>
		<content:encoded><![CDATA[<p>Thanks PinalDave, you&#8217;re a ledge, you saved me doing any actual work!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sushil</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-130305</link>
		<dc:creator><![CDATA[Sushil]]></dc:creator>
		<pubDate>Thu, 21 Apr 2011 05:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-130305</guid>
		<description><![CDATA[Wants to calculate weekly data from Monday to Sunday basis. But the doubt is, when i am calculating the data by year. weeks got divided into two parts, i.e current year and next year. i want to combine into one. 

pls help some one.]]></description>
		<content:encoded><![CDATA[<p>Wants to calculate weekly data from Monday to Sunday basis. But the doubt is, when i am calculating the data by year. weeks got divided into two parts, i.e current year and next year. i want to combine into one. </p>
<p>pls help some one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tincy Joseph</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-129455</link>
		<dc:creator><![CDATA[Tincy Joseph]]></dc:creator>
		<pubDate>Mon, 18 Apr 2011 06:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-129455</guid>
		<description><![CDATA[Thank you so much!!...You are a life saver !!]]></description>
		<content:encoded><![CDATA[<p>Thank you so much!!&#8230;You are a life saver !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127629</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Fri, 08 Apr 2011 11:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127629</guid>
		<description><![CDATA[That was JUST what I wanted - you have saved a tired brain from thinking about a problem from the wrong direction]]></description>
		<content:encoded><![CDATA[<p>That was JUST what I wanted &#8211; you have saved a tired brain from thinking about a problem from the wrong direction</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127587</link>
		<dc:creator><![CDATA[Chandan]]></dc:creator>
		<pubDate>Fri, 08 Apr 2011 08:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127587</guid>
		<description><![CDATA[Query to Find First and Last Day of Financial Year.]]></description>
		<content:encoded><![CDATA[<p>Query to Find First and Last Day of Financial Year.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chadnan</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127586</link>
		<dc:creator><![CDATA[Chadnan]]></dc:creator>
		<pubDate>Fri, 08 Apr 2011 08:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127586</guid>
		<description><![CDATA[SQL SERVER – Query to Find First and Last Day of Financial Year]]></description>
		<content:encoded><![CDATA[<p>SQL SERVER – Query to Find First and Last Day of Financial Year</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: veena jairam</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127128</link>
		<dc:creator><![CDATA[veena jairam]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 20:54:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-127128</guid>
		<description><![CDATA[Hi All,

Can someone please help me in finding the first and last date of the current month.

Regards,
Veena]]></description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>Can someone please help me in finding the first and last date of the current month.</p>
<p>Regards,<br />
Veena</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SRINIVAS</title>
		<link>http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-126747</link>
		<dc:creator><![CDATA[SRINIVAS]]></dc:creator>
		<pubDate>Tue, 05 Apr 2011 13:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/13/sql-server-query-to-find-first-and-last-day-of-current-month/#comment-126747</guid>
		<description><![CDATA[HI……….
I AM WORKING ON A REPORT
I HAVE TABLE LIKE

IMG_NO FLAG LOG USR_ID

W01 1 4/5/2011 1
W01 4 4/5/2011 1
W02 1 4/5/2011 1
W03 1 4/5/2011 1
W03 2 4/5/2011 1
W04 5 4/5/2011 2
W05 1 4/5/2011 2
W05 4 4/5/2011 2
W05 5 4/5/2011 2
W06 1 4/5/2011 2
W06 1 4/5/2011 2

SO I WONT OUTPUT LIKE

USR_ID STARTIMGNO ENDIMGNO FLAGIS4 FLAGIS’5 TOT
1 W01 W03 1 0 5
2 W04 W06 1 2 6

THE ABOVE OUTPUT BASED ON DATE PLZZZZZZZZZZZZZZZ
HELP ME

THANKS.]]></description>
		<content:encoded><![CDATA[<p>HI……….<br />
I AM WORKING ON A REPORT<br />
I HAVE TABLE LIKE</p>
<p>IMG_NO FLAG LOG USR_ID</p>
<p>W01 1 4/5/2011 1<br />
W01 4 4/5/2011 1<br />
W02 1 4/5/2011 1<br />
W03 1 4/5/2011 1<br />
W03 2 4/5/2011 1<br />
W04 5 4/5/2011 2<br />
W05 1 4/5/2011 2<br />
W05 4 4/5/2011 2<br />
W05 5 4/5/2011 2<br />
W06 1 4/5/2011 2<br />
W06 1 4/5/2011 2</p>
<p>SO I WONT OUTPUT LIKE</p>
<p>USR_ID STARTIMGNO ENDIMGNO FLAGIS4 FLAGIS’5 TOT<br />
1 W01 W03 1 0 5<br />
2 W04 W06 1 2 6</p>
<p>THE ABOVE OUTPUT BASED ON DATE PLZZZZZZZZZZZZZZZ<br />
HELP ME</p>
<p>THANKS.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

