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  

querying the data



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2008, 09:37 AM posted to microsoft.public.access.tablesdbdesign
Cliff
external usenet poster
 
Posts: 136
Default querying the data

thnaks Mr.Douglous for help I got from you for last question, really your
answer worked well to solve my problem . Now I have another problem

My data is no1. no2. no.3 no.4 no.5
2 9 13 17 20
4 13 21 30 31
4 9 17 26 27
9 10 13 19 29
9 17 20 26 27
2 13 17 26 30


Now I want to create report/query on the above data to find out no. of
pairs/triples etc like
9 13 appeared twice in pair
13 17 appeared twice in pair
17 26 appeared thrice in pair
9 17 20 appeared twice in triples
2 13 17 appeared twice in triples
9 17 26 27 appeared twice in 4 nos.

coud you help me to solve this problem?. I tried query of say no.1 & no.2
then no1. and no.3 then no1.no.4 etc, but I could not merge my query results
into one table or query

cliff
  #2  
Old June 15th, 2008, 04:24 PM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default querying the data

Is the data you described the actual table structure or the result of a
crosstab? Is there a primary key field that you aren't showing us (there
should be)? How would you want the result to actually display? What are the
table/query names?

If the data is actually structure as provided, you will probably need a
union query.

--
Duane Hookom
Microsoft Access MVP


"cliff" wrote:

thnaks Mr.Douglous for help I got from you for last question, really your
answer worked well to solve my problem . Now I have another problem

My data is no1. no2. no.3 no.4 no.5
2 9 13 17 20
4 13 21 30 31
4 9 17 26 27
9 10 13 19 29
9 17 20 26 27
2 13 17 26 30


Now I want to create report/query on the above data to find out no. of
pairs/triples etc like
9 13 appeared twice in pair
13 17 appeared twice in pair
17 26 appeared thrice in pair
9 17 20 appeared twice in triples
2 13 17 appeared twice in triples
9 17 26 27 appeared twice in 4 nos.

coud you help me to solve this problem?. I tried query of say no.1 & no.2
then no1. and no.3 then no1.no.4 etc, but I could not merge my query results
into one table or query

cliff

 




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 08:50 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.