|
-
Nov 4th, 2001, 11:56 AM
#1
Thread Starter
Frenzied Member
Harry.
"From one thing, know ten thousand things."
-
Nov 4th, 2001, 12:10 PM
#2
PowerPoster
you've gone about it the wrong way a bit
Is Colour and Land_Type the names of the tables?
-
Nov 4th, 2001, 12:17 PM
#3
Thread Starter
Frenzied Member
Yes, they're the table names. The names should probably be made more distinct. Land_type (with a 't') is the table name and that has a field called Land_Type (with a 'T').
Harry.
"From one thing, know ten thousand things."
-
Nov 4th, 2001, 12:30 PM
#4
PowerPoster
I've just had another look at it...
It looks like you are trying to join the recordsets to product 1 recordset, like say you have a table called Customers and another table called Employees, and you're trying to combine the two to produce a "Customers and Employees" query
Customers
-------------
Name Address
Brian 12 South Street
Fred 13 West Street
Employees
-------------
Name Address
Bob 999 Letsbe Avenue
Jim 123 Elm Street
and you want to produce:
Customers and Employees
----------------------------------
Name Address
Brian 12 South Street
Fred 13 West Street
Bob 999 Letsbe Avenue
Jim 123 Elm Street
If that is the case, you need to use a union join rather than the usual type of join. Sorry that was long winded, i'm just trying to work out what you're trying to do
-
Nov 4th, 2001, 01:46 PM
#5
Lively Member
ere is da example of da Union query dat me main man chrisjk wos nattain abou'
VB Code:
SELECT Landscape_Name FROM Colour WHERE Colour='blue' ORDER BY Priority ASC;
UNION ALL
SELECT Landscape_Name FROM Land_type WHERE Land_Type='desert';
Joins da recordsets togeter, aye
-
Nov 4th, 2001, 07:01 PM
#6
Thread Starter
Frenzied Member
Thanks guys, but it was definitely inner join I was needing. This has been resolved now anyway, thanks to some database restructuring and SQL malarkey, courtesy of the Mr Ian P Baker we all know and love. Well, we know him anyway.
Cheers
Harry.
"From one thing, know ten thousand things."
-
Nov 4th, 2001, 07:57 PM
#7
Lively Member
Respeck to me main men HarryW and Ianpbaker
Boyakasha
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|