multiple instances of Tables

A

ace

Could someone explain why there are multiple instances of Tables in
Relationship window and how we can eliminate them? The 2nd copy seems to get
the original name plus "*_1" suffix.

There was a similar question and answer from 2005 but I presume 2007 version
requires a different solution!

Thanks,
AC Erdal
 
A

ace

Dorian,
I did not intentially try to link two columns in the same table! When and
why would you do the self-join? I have a table_1 with no connections! Is
that mean a self-join? When there is a self-join, how do I find out which
columns were joined?

Thanks,
AC Erdal
 
L

Larry Linson

ace said:
I did not intentially try to link two columns in the
same table! When and why would you do the self-join?

There are many instances when a self-join is necessary. One example is a
company's employee list, where each employee reports to a higher-level
employee. The record would contain a "foreign key" that refers to another
record (the one where the manager's information is stored). The top-level
person (the President/CEO/COO/Chairman) would not have a value in this
field. Another example would be a genealogy or pedigree list, where each
"child" has a foreign key to each of his/her parents.
I have a table_1 with no connections! Is that mean
a self-join?

No, it probably means that additional copy was erroneously added to the
Relationships. If someone else created this database, ask them if there
should be a self-join on some relationship; if you created it, just learn
from your mistake.
When there is a self-join, how do I find out which
columns were joined?

In the Relationships window, there will be a join line between the table and
the table_1, just as there is in any other relationship.

The same situation can occur in the Data Sources of a Query (the top portion
of the Query dialog) displayed in the Query Builder, and the same comments
apply. But, adding a table twice to a Query will not automatically create a
Relationship that will appear in the Relationships window.

Larry Linson
Microsoft Office Access MVP



__________ Information from ESET Smart Security, version of virus signature database 4057 (20090506) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top