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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I group on the left character of a field, unless it's numeric?

Status
Not open for further replies.

NSMan

Technical User
Aug 26, 2004
72
US
I'm creating a report for some indexes, and I want to group for every left character of a field, except for numerics, in which case I want everything together.

Whay I currently have is this

--------------------------------
left({nstemp.name1},1)
--------------------------------

And I want to do something like this
--------------------------------
case when left({nstemp.name1},1) > 9 then left({nstemp.name1},1) else 1
--------------------------------

Any ideas?
 
Something like this :

if left ({Table.Name}, 1) in "0" to "9" then "0"
else
left ({Table.Name}, 1)

Let me know if that helps!

Bob

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top