473,508 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Help: Mutiple Relationships

Hello. Looking for some tips, tricks or help in addressing the following issue.

Table 1 has two columns, A and B. Column A is the Key ... column B is the name-value.

Table 2 has many rows and has 10 Columns. Each column contains a value which I need to look against Table 1 Column A and retrieve the Table 1 Column B name-value.

And I cannot seem to do this without laborious and repeated queries. Any tricks?
Jun 21 '06 #1
2 1013

Buster Chops wrote:
Hello. Looking for some tips, tricks or help in addressing the following issue.

Table 1 has two columns, A and B. Column A is the Key ... column B is the name-value.

Table 2 has many rows and has 10 Columns. Each column contains a value which I need to look against Table 1 Column A and retrieve the Table 1 Column B name-value.

And I cannot seem to do this without laborious and repeated queries. Any tricks?


so you're joining table 1 to table 2 on multiple fields? Not much to
it. Add Table2 to the QBE grid, then add multiple copies of Table1
then join as you need to. (PK--FK). Then drop in your fields you want
to show (the name-value). you'll have to alias the lot, though...

Jun 22 '06 #2
"Buster Chops" wrote
Table 1 has two columns, A and B. Column
A is the Key ... column B is the name-value. Table 2 has many rows and has 10 Columns. Each
column contains a value which I need to look against
Table 1 Column A and retrieve the Table 1 Column B
name-value.


Piet's reply tells you how to do this with your current design, but almost
certainly your design should be "normalized" to comply with relational
database design principles. It appears you have 10 Columns, each
representing the same type of information. If those were each separate Rows
(Records, in Access Terms), you could simply query to find what Key values
have a particular name-value. As it is, such a question is likely to require
a laborious query structure to answer.

Larry Linson
Microsoft Access MVP

And I cannot seem to do this without laborious and repeated queries. Any
tricks?
Jun 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2021
by: sheree | last post by:
I have 3 tables (amoung a few others) in a small access database. The tables are as follows: == AEReport -------- AEID (PK) RptCatelog GCRCID PatientID EvntDate
4
2053
by: d.p. | last post by:
Hi all, I'm using MS Access 2003. Bare with me on this description....here's the situation: Imagine insurance, and working out premiums for different insured properties. The rates for calculating...
0
1847
by: leavandor | last post by:
I am trying to design a query that works with a relationship between a Table and a Query. I am comparing a value in the table with a computed value inside the query. The reason for this is that...
4
1485
by: Tom & Carol Satran | last post by:
Hi I am new to this group and to access. I am trying to make a database for a NFP Youth Organization. We have mutiple home teams, visiting teams, and sites. I have the following in a before...
4
2193
by: Raj | last post by:
Hi all, I have couple of questions some one plzz help 1.I have a query which run for 2 hours on my production machine, it returns 1.5 millon rows, i looked at the explain plan it is picking up...
0
1984
by: plaidthermos | last post by:
hello, i have a database where there is a main table, documents, and then a relationship table doc_topics with one entry for each topic into which a document falls. (any document may have an...
7
2249
by: J-P-W | last post by:
Hi, in the past I've spent ages writing VB routines to get around this problem, is there a simple way? I have three tables for a membership system: tblMembership - MembershipNumber; Names etc...
23
2412
by: mforema | last post by:
Hi everybody, I need to create a query that will search based on keywords and major categories. My tables are set-up as follows: tblLiteratureArticles: Abbreviation(FK) ArticleID(PK) Author...
6
4373
by: jsacrey | last post by:
Hey everybody, got a secnario for ya that I need a bit of help with. Access 97 using linked tables from an SQL Server 2000 machine. I've created a simple query using two tables joined by one...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7129
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.