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

Recommended Answers

simply try this

SELECT CURDATE() - 10

read more here and here .

Jump to Post

All 3 Replies

simply try this

SELECT CURDATE() - 10

read more here and here .

Thnxx a lot

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.