SQL Server 2008: Counts within a date range

5 pts.
Tags:
SQL Server 2008
I need to be able to count an id and the ids duplicates when the createdate is  >= 3 months or 90 days (whatever is easier) for the ids createdate. I'm using temp tables and any help would be appreciated as I'm farily new to SQL
id     CreateDate    Counts_id

1       01/01/2015        2

1       04/01/2015       2

2        01/01/2015       1     (Not outside of the 3 month range)

2         01/02/2015       1     (Not outside of the 3 month range)

3         07/01/2015      2

3         07/02/2015      2

3         12/02/2015      2
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Sounds like a homework question. Post your SQL statement and we will take a look at it. You may want to look at 'group by' to help.
    133,870 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: