Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Perform Find on Large number of Data Ranges

Featured Replies

Hi All,

this is my first post.

I need to perform a find which includes over 8000 data ranges.

How can I do this without entering each range individually??

I have an all the data ranges in excel already.

Any help would be greatly appreciated

Can you give some examples of your "data ranges", and a bit more of a clue what is actually stored in your DB.

Perhaps this will give you some clues?:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000651

--sd

  • Author

Thanks for the replies.

I have a database with about 6 million phone numbers and I am trying to omit the vast majority.

I know the number ranges I want to omit because of the exchanges that they are connected to.

There are about 8,000 number ranges I would like to omit.

I hope that helps.

Thanks

From the original post

over 8000 data ranges.

Note: datA not datE

Which is why asked for some examples as I'm confused what a "data range" is.

  • Author

A range of phone numbers.

Sorry if I was unclear with my terminology

Provide the numbers are all the same format then you should be able to easily identify the exchange part of the numbers, but I'm doubting the success of any part of this due to the large number of records and the obvious need to perform multiple finds.

You could script with a loop to EXTEND the found set on each loop, but this will require 8000 loops (based on your data ranges) and time to search will become a very relevant factor.

Do a sample test to see how quick FM returns a found set for just a few ranges. I'm guessing it will take several seconds...you can do the math.

  • Author

The amount of time it takes on the search isn't important. Omitting the numbers is important.

I am a FM noob and just wanted to be pointed in the right direction.

What would the script look like?

Here's a mock up of the file. Use the NUMBERS table to record your phone numbers, use the RANGES table to record your ranges.

Please note that the phone number must be NUMBERS, not TEXT so you must strip any thing outside 0-9. The same applies to the ranges. Please see the sample data in the file.

Untitled.fp7.zip

Another way is to use a related table.

All your phone numbers are in one table.

All your "bad" exchanges are in another table.

Create a calculated field in the phone number table to pull out just the exchange.

Relate the exchange to the exchange in the other table. From the vantage point of the table of exchanges, show all related records from the phone numbers table including all matches in the found set. This will give you the phone numbers you don't want.

Show omitted records only to give you the records you do want.

Example file is attached.

ExcludingEchanges_fp7.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.