List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:May 12 2004 12:31am
Subject:Re: Sorting Varchar
View as plain text  
kc68@stripped wrote:
> How do I set up a column (cost) that contains numbers and text so that 
> the numbers will sort the numbers accurately?  Using varchar results in 
> a sort based on the first digit, so that I get e.g. 1, 10, 100, 3. . . 
> when the command is "order by cost." Almost all of the text is "By County."

Ken:

Consider having two columns - num_val, and text_val, and then order by num_val, 
text_val

-- 
Sasha Pachev
Create online surveys at http://www.surveyz.com/
Thread
Sorting Varcharkc6812 May
  • Re: Sorting VarcharSasha Pachev12 May
Re: Sorting Varcharkc6812 May
Re: Sorting VarcharBill Easton13 May
  • RE: Sorting VarcharErich Beyrent13 May
  • Re: Sorting Varcharkc6813 May