| Author: T.Thirumala Reddy 22 Oct 2008 | Member Level: Bronze | Rating:  Points: 4 |
there is no searching idea for 06 year. then coming to other search, you should write like this,
select * from studenttable where year(dob)='[year number]' and left(datename (mm,dob), 3)='[monthname(it must bu 3 chars)]' and day(dob)='[daynumber]'
|