Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculation Criteria on Join Date Field

Status
Not open for further replies.

Jimmy24

IS-IT--Management
Sep 7, 2006
21
US
Dear Sir or Madam,

I need to pulled data where that will includes all members that with join_date is greater than specific date.

Example: All member with join_date greater than 11/12/2005.

Select *
From Members
Where ?????????

Thank you for your assistance

Jim
 
JOIN_DATE > '2005-11-12' ?

It's a magical time of year in Philadelphia. Eagles training camp marks the end of another brutal season of complaining about the Phillies.
 
We can help, but we need more information to do so. Please run the following query and paste the information back in to this thread.

Code:
select 	Data_Type
From 	Information_Schema.Columns
Where	Table_Name = 'Members'
        And Column_Name = 'join_date'

This code should be run in query analyzer.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Duh!

JOIN_DATE > '2005-11-12 23:59:59'

Thanks harebrain, guess I was a little lazy on that one!

This all of course is dependent on whether or not you have a bona fide date field or a char field, as George's code will point out.

Hope this Helps,

Alex


It's a magical time of year in Philadelphia. Eagles training camp marks the end of another brutal season of complaining about the Phillies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top