Support for nested selects?

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 23-Aug-2006 23:27:06   

Unless I am missing something one can't nest selects. Example: select field1, ..., (select something from sometable where ...) as NestedField FROM primarytable

It can be done through view or storedproc of course.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 24-Aug-2006 07:26:27   

I guess you are not missing anything.

View is my precious object

mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 24-Aug-2006 08:58:31   

lol, my preciousssss

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 24-Aug-2006 09:51:34   

Of course you can simple_smile ScalarQueryExpression is your friend simple_smile See: "Field expressions and aggregates" -> Scalar query expressions in the manual

Frans Bouma | Lead developer LLBLGen Pro
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 24-Aug-2006 10:08:39   

Otis wrote:

Of course you can simple_smile ScalarQueryExpression is your friend simple_smile See: "Field expressions and aggregates" -> Scalar query expressions in the manual

Heya Frans,

Sh, how could I doubt :-) Any chance of getting this feature to designer?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 24-Aug-2006 10:31:18   

For typed lists you mean? That falls into the same category as expressions. We thought about it, wrote some test setups but it all turned out to be more work for the user than simply writing a couple of lines of code. I.o.w.: it would make you less productive.

Frans Bouma | Lead developer LLBLGen Pro