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.

Flat file from multiple tables

Featured Replies

I've been thinking through the logic of this issue for a few months and I haven't been able to figure out a solution. I hope someone has run across this and has some advice.

I have two tables (at least). Let's call one Students and the other Classes. It is a one-to-many relationship, so that for every Student record there are numerous Classes records.

I want to do some analysis on this data to predict Student success in their Classes, so I'd like to export the data into a statistical analysis software (SPSS). I think the best way to do that is have a flat file combining demographic (Students) data with grades (Classes).

Assuming I start with a Student record, how do I combine that with one or more Classes records?

I imagined automating the creation of new fields in a Temp Table and inserting specific data into the fields from each record and then exporting that data. But, this has run me up against FM b/c I can't find a way to automate field creation. (the underlying intent is to automate this into my solution. So I need to make the export field selections pliable)

Any help would be MUCH appreciated. Please ask questions where I haven't been clear.

THANK YOU, THANK YOU, THANK YOU!

I don't know what the requirements of SPSS are. Usually, a flat file is produced by exporting from the "many" table, including related fields from the "one" table.

  • Author

Well, I'll be darned. (FYI, the requirements of SPSS are not different from Excel, generally). I never thought that exporting from the MANY table and including fields from the ONE table would input the ONE fields' information in each record of the MANY table's records. Genius, and yet simple. Thank you FM.

And, thank YOU!!

Create an account or sign in to comment

Important Information

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

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.