devxlogo

Compare Only Alphabetic Values

Compare Only Alphabetic Values

You can force a like condition to compare only alphabetic values. Here is how:

ORDER BY CASE WHEN LTrim(RTrim(Place.Name)) NOT LIKE '%[^0-9]%' THEN 1 ELSE 2 END, Place.Name
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist