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

Select portion of string

Status
Not open for further replies.

koolskins

IS-IT--Management
Nov 22, 2003
79
US
I am running CR9 on an Informix database and need to select records from two tables where the column "_program" from table A matches "program_id" in table B. However, the
"_program" records all end in ".4GL" and can be from 4-8 characters in length prior to that extension. How do you select only that part of the string upto the ".4GL"?

Thanks.
 
Create a formula:

left({table.program},instr({table.program},".")-1)

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top