Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

order by value of text field

Status
Not open for further replies.

shahina

Programmer
Aug 19, 2003
47
IN
Hi all..

i am using asp.net and sql server 2000. I want to sort some records on the basis of house no which is a text field. i mean it have both numbers and text eg..1, 1A, 2, 2A like that..if i sort by taking house no its coming like 1,10 like that..how can i can get the report as i needed like 1, 1A, 2..Please help me..thanx in advance..
 
You could set up an insert trigger that separates the number and the letter into two additional columns and then order by the number and the letter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top