var05 (12/5/2012)
any help on this?
Yeah, don't store dates as varchars, store them as datetime data types and then the comparisons will be date-based, not string based.
I strongly recommend fixing the data types. Any other form of workaround will be slow, painful or both.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability