Skip 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.

Splitting up a flat file db

Featured Replies

Hi,

I'm working on a database with student records.

Each record has the student name and info-- address, phone #s, etc.

The problem is that it was setup so that along with each student, it also has the student's mother, father, grandmother, grandfather, aunt, etc..,, each one of these 'relatives' has unique fields for address, name, etc..

so,

DB Fields:

student_name

mom_name

father_name

student_address

student_address2

student_city

mom_address

mom_address2

and so on..

What's the easiest way to split this up, while maintaining the relationship- automagically?

-- without having to resort to making a script to copy fielda to globalfielda, copy fieldb to globalfieldb, etc., then create new record and fill in the fields.

There's gotta be at least over 100 fields that I have to go through to do it the way I described above!

thanks!

I would suggest multiple imports for each type of relative into one file.

  • Author

but then instead of typing out a long script, i'd have to hunt and select name1,address1,state1,phone1,cellphone1, all the way up to 8 or so.

hmmmm

mr. v's got it. Import. If there was an automagical way to do this, I'd be out of business.

Create scripts to do the importing, run them a bunch till you're sure they work (using a script to Save as Clone to clear your working copy). Create a master script that calls all the sub scripts (Import Mom, Import Aunt, etc).

It's a learning curve, but it's really the easiest way.

i'd have to hunt and select name1,address1,state1,pho ne1,cellphone1, all the way up to 8

True, but it's a one-time effort. However, before you do anything else, add a StudentID field to your existing table, define it as Number with auto-entered serial number, and populate it with serial numbers. Include this field in all your sequential imports, mapping it to a StudentID field of your new Relatives table (this is assuming you want to keep the relatives in a separate table).

Without this, you won't be able to link your imported records back to the originating student record.

  • Author

Hi comment! How are you?

thanks for the info,, I went ahead and did it the long way :

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.