Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INNER Join or Outer Join??
Message
From
26/07/2006 09:06:48
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
INNER Join or Outer Join??
Miscellaneous
Thread ID:
01140133
Message ID:
01140133
Views:
53
Dear All,

I have 2 tables.

Table1
2006-01-01
2006-01-01
2006-01-01
2006-02-01
2006-02-01
2006-02-01
2006-02-01
2006-03-01
2006-03-01
Table2
2006-01-01
2006-01-01
2006-02-01
2006-03-01
2006-03-01
2006-04-01
I want to use join statement in SQL select to Output like this:
Output table
2006-01-01
2006-02-01
2006-03-01
2006-04-01
I have tried to use INNER JOIN & OUTER JOIN & LEFT JOIN, none are working... Any idea?!
SELECT distinct a.tx_date FROM tx1 a inner JOIN (select DISTINCT b.tx_date FROM tx2) b ON a.tx_date = b.tx_date INTO cursor tmp
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Next
Reply
Map
View

Click here to load this message in the networking platform