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.

self join table or multikey or ... ?

Featured Replies

Can anyone help me on the road?

I have 3 tables:

ingredients products invoice items

Product_ID----=-------ID-----=-----Product_ID

fields of ingredients

name

Quantity/product

fields of invoices

Quantity products

1 invoice can consist of several products.

1 product consists of several ingredients.

1 ingredient can avoid in several products.

1 product can be 'ordered' by several invoices.

I can see how much of each ingredient is needed in total for all invoices.

And I can see what ingredients are needed for each single invoice.

What I can not see is how much of each ingredient is required for each single invoice.

Should I fix this with a self join table or multikey? or something els?

The file is an example of (jonathan stark) that i have changed. see attachment.

Thanks.

A helping hand is enough!

ScreenHunter_02_Nov._09_07.08.gif

Edited by Guest

I think you need to be careful to separate tables containing invoice data from tables representing the product catalogue. An invoice might employ a script and relationships to look up current recipe data but this should be copied over to the invoice tables rather than simply viewed through a portal or a calculated field. The reason is that your catalogue of recipes might change with time and you don't want this to change the old invoices.

If you are using a script to copy over the recipe data then it can go on to calculate the ingredient totals also.

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.