Solved

SQL:   Where SignupDate (is in March-April)

Posted on 2014-01-27
3
374 Views
Last Modified: 2014-01-27
How do I formulate a WHERE clause to filter my records for
Where Signup_Date (is in march or april)

Notice:  if someone has a signup date for March 3, 2011, or April 20, 2012, it will still get pulled.  Only looking at month.
0
Comment
Question by:arthurh88
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 34

Accepted Solution

by:
Brian Crowe earned 500 total points
ID: 39813595
SELECT ...
FROM myTable
WHERE MONTH(Signup_Date) IN (3, 4)
0
 
LVL 26

Expert Comment

by:Shaun Kline
ID: 39813598
Something like this?

WHERE Month(Signup_Date) IN (3, 4)
0
 

Author Closing Comment

by:arthurh88
ID: 39813617
just perfect!  thanks
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question