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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Interger vs VarChar

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-07-30 : 08:51:22
Yuen writes "Table name called CS
<costcenter> define in (varchar)

//****Before sort(in table)
costcenter
111
333
222
33333
11111
444
33333
44444

//****After sort
costcenter
111
11111
222
22222
333
33333
444
44444

If the DBA don't convert the data type (I don't know what his reason) to interger. How I can use SQL to sort the result like the following

//**** Sort
111
222
333
444
11111
22222
33333
44444

Beginner SQL developer"
   

- Advertisement -