Sorting nvarchar column SQL Server 2005 -


when sorting nvarchar column in sql has numeric value, sql server returns bad sorting , don't know why!

is there particular way sql server sorts varchar columns having numeric values?

thanks

this has fail-safe take account non numerical values, , place them @ end of result set.

select [nvarcharcolumn] [table] order cast(isnull(nullif(isnumeric([nvarcharcolumn]),0),2147483647) int) 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -