Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
seeker61
Starting Member
4 Posts |
Posted - 2013-05-16 : 08:59:08
|
I have two dates for a record 9/30/2012 and 8/31/2014 and max(datevalue) returns 9/30/2012 --- why |
|
mmkrishna1919
Yak Posting Veteran
95 Posts |
Posted - 2013-05-16 : 09:11:19
|
Please check the data type of that column may be it is in VARCHAR()Thanks,M.MURALI kRISHNA |
|
|
seeker61
Starting Member
4 Posts |
Posted - 2013-05-16 : 09:18:33
|
That did it thanks. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-05-17 : 00:08:47
|
ALways try to use proper datatype for fields. Otherwise you will have difficulty in doing manipulations like these and would require unnecessary convert operations------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|