Hi Guys,

It's a Monday morning and my brain isn't working properly (surprise,
surprise!)

Anyway, I have 3 tables that I want to join together.

Table 1 has 1 record =

        "Table1 My data"

Table 2 has 1 record =

        "Table2 My data"

Table 3 has 2 records =

        "Table3 My data record 1"
        "Table3 My data record 2"

The output I want to get is to have 2 records of data that looks like
the following...

        "Table1 My data", "Table2 My data", "Table3 My data record 1"
        "Table1 My data", .NULL., "Table3 My data record 2"

Is this even possible with one SQL statement?  Or would it just be
easier to split it into two?

SELECT table1.f1, table2.f1, table3.f1 FROM table1 INNER JOIN table2
INNER JOIN table3 ON <join> ON <join> WHERE <statement> INTO CURSOR
myCursor

Comes back with...

        "Table1 My data", "Table2 My data", "Table3 My data record 1"
        "Table1 My data", "Table2 My data", "Table3 My data record 2"

Ergh, I hate Monday mornings.


Tristan Leask

Software Developer
Marine Software Ltd

[EMAIL PROTECTED]
www.marinesoftware.co.uk

--------------------------------------------------------------------------------------------------------------
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly in 
writing by Marine Software Limited, 
this communication and attachments are to be treated as confidential 
and the information in it may not be used or disclosed except for the 
purpose for which it was sent.
If you are not the intended recipient of this  communication  you should 
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error. 
[EMAIL PROTECTED]

Marine Software Limited. Registered in England & Wales. No 2576494
Regsitered Office. Unit3, Aylesham Business Pk, Aylesham. Kent. UK
------------------------------------------------------------------------------------------------------------------



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to