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.

Very basic question

Featured Replies

I was watching a video at Petrowsky's site and he said that every table should have as it's first field, a number field labled ID, auto enter serial number. My question is: is this necessary in child records? What is the purpose of doing this?

Toffler

As the sign in a nearby cemetery says, "Better to have and not need, than to need and not have."

I would not say that it needs to be a number field, I prefer text.

Every table should have a primary key.

This is usually true, but I think saying "every table" is too much of a generalization. Join tables don't necessarily need a primary ID. "Value list" tables may not need them. The reason why you should not put them in tables where they are not needed is because of imports. It sometimes happens that you have to import existing records into a new version, etc.. In that case you only want to have to reset serial IDs where necessary, the less the better.

I know Ralph is into separation of data (which is something I need to learn more about), so he wouldn't have this problem so often. I would say "almost every table." Whether a child table needs one or not depends on whether you're going to be processing each one of the child records at some point. Usually you are, so you need an auto-enter serial ID to be able to positively identify a particular child record.

Schemes you commonly see in businesses, using numbering calculations, the "next" job number, etc., have their use (mostly to keep the client happy :-), but are not as reliable.

  • Author

Thanks for the answers.

Toffler

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.