relating tables vs. join during query

miconian

Well-known Member
Joined
Aug 18, 2004
Messages
769
Is there a difference between:

a) Creating a relationship between two tables, and then running a query that involves them both.

b) Taking two previously unrelated tables, running a query that involves them both, and creating a join within the query that connects them.

Or are these effectively the same thing?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
In terms of running queries, I find in practice they are the same thing.

In terms of database design, creating joins is useful if you want to set up referential integrity (i.e., [PODetail] must have a parent record in [POHeader] and so on). So that might be a very big difference.

Otherwise, you may find it marginally beneficial to create the relationships even without referential integrity so that when you create queries the relationships are already established. Especially when you start having joins with three or four tables in them, and they're all ready to go as soon as you add them to the query designer grid, this can make life a little easier. Even more so if you constantly have to un-join the wrong fields that Access is attempting to join for you (with autojoin, if you have it on). How do I know this ... well, :rolleyes: Don't ask.

ξ
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top