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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.