Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change JOIN to exclude?
Message
 
 
To
14/08/2008 17:13:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01339003
Message ID:
01339028
Views:
21
>>Hi,
>>
>>How do I change the following SQL Select so that it will return only those records in MyTable1 that have no child records in MyTable2:
>>
>>
>>select * from mytable1 join mytable2 on mytable1.fld1 = mytable2.fld1
>>
>>
>>Thank you in advance for any help.
>How about
>select t1.* from mytable1 t1 inner join mytable2 t2 on t1.fld1 <> t2.fld1

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform