U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Sql: *JoinRef
Re: Sql: *JoinRef [message #34976 is a reply to message #34975] Fri, 23 December 2011 08:40 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
To replace "in" (nested select), you have to use normal InnerJoin, not LeftJoin.

I suppose that this should work:

Select(myData.Of(TABLE_A)).From(TABLE_A)
.InnerJoinRef(TABLE_B).On(AGE.Of(TABLE_B) == xxxxxx).Where(A_REF_C.Of(TABLE_A) == yyyyyy);


Here I expect yyyyyy to be single value, not to represent another "in"...

[Updated on: Fri, 23 December 2011 08:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Settings and multiple ide instances
Next Topic: DataSource
Goto Forum:
  


Current Time: Sat Oct 03 08:58:55 GMT+2 2026

Total time taken to generate the page: 0.01479 seconds