Skip to content
SQLInsight

SQLInsight

We Do SQL Right!

  • What’s New
  • Power BI Gallery
  • PowerPoint Downloads
  • About Us
  • Contact Us
  • Home
  • 2011
  • August
  • 31

Day: August 31, 2011

Character selection by location in a string

August 31, 2011 Steve Schneider

Suppose you had a 4 character field (prefx), and you wanted to find all those records where the 2nd and 4th characters were numeric, with the other two being alphabetic.  Here’s a neat, simple solution: select * from TableName where prefx…

Read more

SQL 2005, SQL 2008, SQL AdministrationSQLLeave a Comment on Character selection by location in a string
Copyright SQL Insight 2017 © All rights reserved.
Business Era by mProThemes