Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select with 2 IN clauses
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Select with 2 IN clauses
Miscellaneous
Thread ID:
01676141
Message ID:
01676141
Views:
54
Hi,

I am running into a problem where the error message is:
Only one expression can be specified in the select list when the
subquery is not introduced with EXISTS
The SQL Select is as follows:
select Table1.Field1 from Table1 where Tabel1.Field1 in (select Table2.Field1, Table2.Field2 from Table2 where 
Table2.Field2 in (select Table3.Field2 from Table3))
That is, in the above SQL Select there are two IN clauses.

Does the error mean that I have to change the second IN with EXISTS? Or both IN have to be change to EXISTS?

TIA
"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
Next
Reply
Map
View

Click here to load this message in the networking platform