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.

Featured Replies

Hello friends!

I am building an application for a flight instructor who wants to keep track of the organisation flights.

The database has a table named "PILOTS" (one) and a table named "FLIGHTS". 

The problem i face is as follows:  Any flight has a crew consisted of CAPTAIN and CO-PILOT. Any pilot for "PILOTS" table 

can sit in any of the two positions depending on the certain flight. How do i set a relationship, so that

I can see all the flights from the perspective of one pilot (basically i want the matchfield to be FLIGHTS::CAPTAIN or FLIGHTS::CO-PILOT)

Thanks!

 

Edited by Dimitrios Fkiaras

Basically you have two options:

1. Using 3 occurrences of the Pilots table, Pilots, Captain and CoPilot, define these relationships:

Flights::CaptainID = Captain::PilotID

Flights::CoPilotID = CoPilot::PilotID

Pilots::PilotID = Flights::cCrewIDs

where cCrewIDs is a calculation field (result is Text ) = List ( CaptainID ; CoPilotID ).

The problem with this option is that from the context of Pilots, all related flights will appear equally, regardless of the pilot's role in them. Although you could use conditional formatting to distinguish between them, you will not be able to produce a report in the format of:

Pilot A
    Flights as pilot:
        • Flight 001
        • Flight 007
    Flights as co-pilot:
        • Flight 004
        • Flight 005
        • Flight 009
Pilot B
   ...

2. Use a join table of Roles between Flights and Pilots.

 

  • Author
23 hours ago, comment said:

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.