Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Easier way to convert a flat file?


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

Recommended Posts

Posted

Hi all,

I'm converting a spreadsheet into a nice relational filemaker pro DB, and was wondering if there was a better way to do it than the one I've come up with. My main concerns are the key fields for the company and employee tables. Each company has 1-100 employees and each row of the spread sheet has a company name and an employee name. Here is what I'm doing to convert it:

1) Set up CompanyID and EmployeeID fields to auto enter serial numbers and import the spreadsheet to a temporary conversion database.

2) Find and sort duplicates based on Company Name, then in list mode manually copy and paste the CompanyIDs so all the duplicates have the same serial number.

3) Import all the employees and pertinent data into the final database with the CompanyID as a foreign key.

4) Based on Company ID, manually delete all the duplicate records then import the Companies and pertinent data into the appropriate table of the final database.

The above works, but I was wondering, does anyone have a better way to do this type of conversion?

Thanks!

Posted

I would do it this way:

1. In the Companies table, validate CompanyName as Unique, Validate always.

2. Import the spreadsheet into both tables (with auto-enter on, so that each record gets a serial ID).

3. Define a temporary relationship matching on CompanyName. Use this to populate the CompanyID foreign key field in the Employees table.

4. Switch the relationship to match on CompanyID.

This topic is 5178 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.