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? Calculations?

Featured Replies

I have a database called versions. there is a job number field in this database. there may be many records with the same job number (different versions of a project). There is a field called sales status. This field can have one of two values - "Available" or "Sold." I'd like to be able to have a calculation field that would tell me how many versions with the same job number have been sold and thus have the value of "Sold" in the sales status field. i'm so far havin no luck. any suggestions?

Create these fields.

iOne = 1 (Stored, Nubmer)

JobStat = Job_Number & Status (Stored, Text)

JobSold = Job_Number & "Sold" (Stored, Text)

JobAvail = Job_Number & "Available" (Stored, Text)

Create 2 Self-relationships..

Sold = JobSold::JobStatus

Available = JobAvail::JobStatus

Create These Fields...

CountSold = Count(Sold::iOne)

CountAvail= Count(Available::iOne)

This will tell you how many Sold or Available you have per job number but not tell you how many "Different Versions" you have, you'd have to take it a step further and add the "version" number/letter to the indexes and create more relationships and count fields depending on the number of possible versions.

[ March 30, 2001: Message edited by: Ocean West ]

  • Author

OOoh! That worked like a charm. I never thought of combining both the job number and status fields into one field - thanks!

I've already got the number of versions for each project in a field. I have job number self-joined to itself. then I have a calculation field "Versions Sold" that is Count(Job Number::Version Name).

Thanks for the quick reply and help!

[ March 30, 2001: Message edited by: Jason Whetstone ]

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.