How to use IN

Posts   
 
    
krkc
User
Posts: 20
Joined: 12-Apr-2006
# Posted on: 27-Oct-2006 12:19:35   

How do I write the below SQL Query using Adaptor scenario (LLBL 2.0)

SELECT PLIContainerID, CountryID FROM StudyCountry WHERE (PLIContainerID IN (SELECT PLIContainerID FROM PLIContainer WHERE (PLIParentContainerID = @pliContainerID)))

Many Thanx

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 27-Oct-2006 15:03:41   

Check out FieldCompareSetPredicate class.

krkc
User
Posts: 20
Joined: 12-Apr-2006
# Posted on: 27-Oct-2006 18:19:19   

mihies wrote:

Check out FieldCompareSetPredicate class.

Fine.

I just want some brief info on how I can use IN in my conditions

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 27-Oct-2006 18:47:48   

Please check the predicate documentation in the manual under filtering and sorting. You'll find examples etc. there.

Frans Bouma | Lead developer LLBLGen Pro