Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Assistance setting table relationships.

$
0
0
I've managed to back myself into a corner with my table structure. Initially I really didn't need relationships but I find myself wishing I had set them earlier. (Probably an amateur mistake, but good thing I'm an amateur!)

I have several tables that log specific information about different tasks during a flight. Each record for each table is uniquely identified by the flight number, however I just set the primary key as an autonumber.

So in reality, there can be only one record, for each table, with a unique flight number.

I want to set my relationships so that I can see which tables have a record with the same flight number.


A visual example:

Tables: Takeoffstuff LandingStuff Inflightstuff

Records: 19923 19923 19923
19924 19924 19924
19925 19925 19925


The Query: Which tables have records for flight # 11924

The Result: Takeoffstuff, landingstuff, inflightstuff

Thanks for any assistance as usual!

Viewing all articles
Browse latest Browse all 13329

Trending Articles