dbTalk Databases Forums  

Date query help

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Date query help in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Giorgio
 
Posts: n/a

Default Date query help - 03-19-2007 , 11:14 AM






I have a table with a date_created and date_expired and I want to look
at the 15th of each month and every month since the system started and
count up how many accounts were active at each of those points in
time.
Will have to assume that if there's an expiry date bigger than today
then that account was active at each of those points in time.

Can someone pelase tell me how can I do that?

Thanks a lot


Reply With Quote
  #2  
Old   
Hugo Kornelis
 
Posts: n/a

Default Re: Date query help - 03-19-2007 , 01:41 PM






On 19 Mar 2007 10:14:33 -0700, Giorgio wrote:

Quote:
I have a table with a date_created and date_expired and I want to look
at the 15th of each month and every month since the system started and
count up how many accounts were active at each of those points in
time.
Will have to assume that if there's an expiry date bigger than today
then that account was active at each of those points in time.

Can someone pelase tell me how can I do that?

Thanks a lot
Hi Giorgio,

This question has already been answered in
microsoft.public.sqlserver.programming. In the future, please do not
multipost your questions, as it might cause people to waste time
figuring out an answer to a question that's already been answered
elsewhere.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.