Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5561 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

Hello all,

I have a field I imported from a SQL file. In each record it has text and a 5 digit number.

INSERT INTO `zipcode` VALUES('00401'

I would like to remove everything except the numbers. I have 42000 records.

Anybody got any thoughts how this may be done.

Thanks

Edited by Guest
Posted (edited)

If I could ask one thing more.

The other fields that have the city and state names have in the format 'VT' and 'Bourbon'

How can I remove the ' ' and just leave the city name.

I tried Filter ( City ; "abcdefghijklmnopqrstuvwxyz" ) It took out the ' out and also took out the first letter of the name.

thanks

I see I had to include the caps for each letter.

Got it, Thanks

Edited by Guest
Posted

Not tryign to steal your thread but is it possible to filter the 2nd or 3rd letter?

Say I want a field to show the 3rd letter of another field. CAR9999999

So it would calc the R into the field.

Posted

I am using the function Middle in a field:

Middle (Gift Card Number; Position (Gift Card Number; ";"; 1; 1) + 1; Position (Gift Card Number; "="; 1; 1) -2)

The problem I am having is it only works if I select the field before this one. Other wise the data is not put in the next field and not completely Middled. Is there something I have left out?

Posted

No it is a text field and it is axially moving the data 2 fields over .I have a other database that is set up just like this one but the same field has a slightly deferant calculation:

Middle (Gift Card Number; 1; Position (Gift Card Number; "="; 1; 1)-1)

and this one works just fine. But I need to keep defferant info.

Posted

it is a text field and it is axially moving the data 2 fields over .

I'm afraid I have no idea what that means. I think that if you have a text field named 'Gift Card Number', and you want to extract a portion of it, you should use another field defined as Calculation, with the result type set to Text.

This topic is 5561 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.