Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Union in subquery is invalid
Message
From
16/01/2006 13:14:57
 
 
To
16/01/2006 11:13:34
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01086909
Message ID:
01087251
Views:
28
>It seems to me that it doesn't know what "EXISTS" since the subquery is selecting everything.
>
>Since you only want the Firstname matches, maybe try this?
>
>SELECT Member.FirstName FROM Member ;
>> WHERE EXISTS ( SELECT Firstname FROM New ;
>> WHERE Member.Numero = New.NoMember2 ;
>> OR Member.Numero = New.NoMember3 ;
>> OR Member.Numero = New.NoMember4)

There are several fields that need to be selected. I only included Member.FirstName to simplified the example.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform