Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8807217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:18:57+00:00 2026-06-14T02:18:57+00:00

Table1 id value ——— 1 100 2A 200 2 300 10 500 8 200

  • 0

Table1

id value
---------    
 1  100
2A  200
 2  300
10  500
 8  200
....

Select * 
from table1 
order by id

Showing output as

id value
------------    
 1 100
10 500
2A 200
 2 300
 8 200
....

How to make a proper order?

Expected output

id value
----------
 1 100
 2 300
2A 200
 8 200
10 500
....
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:18:58+00:00Added an answer on June 14, 2026 at 2:18 am
    CREATE FUNCTION [dbo].[RemoveNonAlphaCharacters](@Temp varchar(1000))
    RETURNS int
    AS
    BEGIN
      WHILE PatIndex ('%[^0-9]%', @Temp) > 0
      SET @Temp = Stuff( @Temp, PatIndex('%[^0-9]%' , @Temp ), 1, '')
      RETURN @Temp
    END
    
    SELECT id, value
    FROM dbo.Table1
    ORDER BY [dbo].[RemoveNonAlphaCharacters](id) ASC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

table1 value 100 x 200 x 300 x 400 `I want to split this
Using Access 2003 Table1 ID Name Value 001 Raja 100 002 Ramu 200 004
Please, help me with join results of commands (MS SQL): SELECT name,value FROM table1
Using VB.Net and SQL Server Table1 Id Value ..... 1001P0010001 100 1001P0010002 200 1001P0010003
Below query expression: SELECT distinct xmlCol.value('(//interest/@id)[1]','nvarchar(64)') FROM table1 Returns a list of id of
Using SQL Server 2000 Table1 ID date value 001 23/01/2012 100 002 25/02/2012 200
I want to select the value between the date Table1 Code Period Datefrom dateto
I want to add the value of the latest insert from TABLE1 to a
select id, amount - (select sum(amount) as amount from table2 where column = 'value'
select TABLE1.FIELD1, TABLE1.FIELD2, TABLE1.FIELD3, TABLE1.FIELD4, TABLE1.FIELD5, TABLE2.FIELD6, TABLE2.FIELD7 from TABLE1, TABLE2 where TABLE1.FIELD8 =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.