Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correlated subquery
Message
From
19/03/2021 07:54:46
 
 
To
18/03/2021 15:49:55
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01679045
Message ID:
01679110
Views:
59
>I can express
>
>select * from MyTable   outside  
>    where exists   
>          ( select 1 from DiscountMaster inside where inside.active = 'N')
>
>
>??
>EXIST () is just EMPTY SET or NOT EMPTY SET. There is nothing said about correlation.
>

OK, point taken, so I'll paraphrase...I'm hard-pressed to think of any practical example where the subquery with an EXISTS will not be correlated. Correct, you can do that and it will execute, but beyond that, not sure anyone would write that :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform