Unix Technical Forum

Date query help

This is a discussion on Date query help within the SQL Server forums, part of the Microsoft SQL Server category; --> I have a table with a date_created and date_expired and I want to look at the 15th of each ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 02:43 PM
Giorgio
 
Posts: n/a
Default Date query help

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 02:43 PM
Hugo Kornelis
 
Posts: n/a
Default Re: Date query help

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

>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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:00 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com