954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

SQL Select a Date

Can anybody plz help me.. i need to find all the users who are grater than 10 days old.
table name users ,fild contain with registration dates.to store date i used DateTime.Today with C#.Can any body give me a sql query to slow this

MrBlack
Junior Poster in Training
53 posts since Jan 2010
Reputation Points: 20
Solved Threads: 0
 

simply try this

SELECT CURDATE() - 10


read more here and here .

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

Thnxx a lot

MrBlack
Junior Poster in Training
53 posts since Jan 2010
Reputation Points: 20
Solved Threads: 0
 

use getdate() - 10 for getting rows of last days

crishlay
Junior Poster
132 posts since May 2010
Reputation Points: 10
Solved Threads: 16
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You