4
Answers

order by date query

yashvant k

yashvant k

14y
2.6k
1
hi,, can any1 tell solution for this

"Select schoolmaster.Name from schoolmaster order by birthDate desc"

o/p i am getting in this order:

01/05/2010
02/05/2010
09/03/2010
30/04/2010

but i need in following way.

09/03/2010
30/04/2010
01/05/2010
02/05/2010

Any idea for doing this, in database i have birthDate  as "Text" field.

Answers (4)