A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Why Base a Relationship on a Query



 
 
Thread Tools Display Modes
  #1  
Old May 1st, 2009, 05:16 PM posted to microsoft.public.access.tablesdbdesign
harold
external usenet poster
 
Posts: 64
Default Why Base a Relationship on a Query

I am trying to understand why this might be done.

Because it does not honor Referential Integrity is there some advantage to
define this in the relationship window.

Is there some performance gain?
  #2  
Old May 1st, 2009, 05:33 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Why Base a Relationship on a Query

You might have two tables you want to relate but the data was formated
differently so using a calculated field you could then relate them.

Example --
Table_A Table_B
B123 123
C439 439

Fullname FName LName
Smith, Joe Joe Smith

"Harold" wrote:

I am trying to understand why this might be done.

Because it does not honor Referential Integrity is there some advantage to
define this in the relationship window.

Is there some performance gain?

  #3  
Old May 1st, 2009, 06:21 PM posted to microsoft.public.access.tablesdbdesign
harold
external usenet poster
 
Posts: 64
Default Why Base a Relationship on a Query

I can do that in the Query Window. I still don't understand the advantage of
doing that in the Relationship Window, especially if Referential Integrity in
not honored.

I must be missing something.

"KARL DEWEY" wrote:

You might have two tables you want to relate but the data was formated
differently so using a calculated field you could then relate them.

Example --
Table_A Table_B
B123 123
C439 439

Fullname FName LName
Smith, Joe Joe Smith

"Harold" wrote:

I am trying to understand why this might be done.

Because it does not honor Referential Integrity is there some advantage to
define this in the relationship window.

Is there some performance gain?

  #4  
Old May 1st, 2009, 10:17 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Why Base a Relationship on a Query

On Fri, 1 May 2009 10:21:01 -0700, Harold
wrote:

I can do that in the Query Window. I still don't understand the advantage of
doing that in the Relationship Window, especially if Referential Integrity in
not honored.


AFAIK the only advantage of such a relationship is that it serves as a default
if you create a query using the objects being related. This can save a couple
of seconds. The performance depends on the indexes on the joined fields, and
the relationship window won't do anything with the indexes unless it's a
relationship with integrity enforced.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.