Link to home
Start Free TrialLog in
Avatar of todjklki
todjklkiFlag for United States of America

asked on

Query That Uniquely Blends Values

Greetings, Experts!  I've been out of the loop with Access for quite a while and need your help with a small query project.

I have two tables.  I need to have a query that merges the values in a manner as shown below:

TABLE 1:
Dog
Cat
Human

TABLE 2:
1
2
3


QUERY RESULTS:  (single field)
Dog 1
Cat 1
Human 1
Dog 2
Cat 2
Human 2
Dog 3
Cat 3
Human 3


I know that this can be done, and can almost figure it out.  Ol' Toddy is stumped.  Help a poor guy out, purty please?

I thank you kindly!


Todd
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of todjklki

ASKER

Top shelf!  Thank you!
Oh, ..the background....
;-)

This is called a Cartesian Product

It is technically done by using a CROSS JOIN (Explicit)

However Access does not support CROSS JOIN,(... I don't think...?)
So I used the "Implicit" syntax above.

You can do a search here or on the web for:  Cartesian Cross Join

;-)

JeffCoachman
That's right!  It makes sense after you mentioned the background information.

Thank you sooooo much, Jeff.  You da man.