|
-
Jun 14th, 2007, 06:38 AM
#1
Thread Starter
Member
[RESOLVED] (SQL2005) Set query condition as date
Guys i want to set my query condition as current date how do i do that?
say select * from Me where Date > Current date
-
Jun 14th, 2007, 07:13 AM
#2
Hyperactive Member
Re: (SQL2005) Set query condition as date
Code:
SELECT * FROM [Me]
WHERE [Date] > GETDATE()
returns anything greater than today's date -
Reference:
http://msdn2.microsoft.com/en-us/lib...3(SQL.90).aspx
-
Jun 14th, 2007, 07:20 AM
#3
Thread Starter
Member
Re: [RESOLVED] (SQL2005) Set query condition as date
thanks NPassero i finally figured it out liked this
SELECT * FROM WHERE (B.EstimatedClosedate > (SELECT GETDATE() AS TodayDate))
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|