Dynamic/Derived table joins

Posts   
 
    
henry0730
User
Posts: 1
Joined: 07-Oct-2006
# Posted on: 07-Oct-2006 00:15:37   

How can I do this with out using Store Procedure or View.

Select * from tb_Task a Inner join (Select taskNo, max(beginDt) ‘beginDt’ From tb_task group by taskNo) b On a.taskNo=b.taskNo and a.beginDt=b.beginDt

I am using the Adpater model with the latest version of LLBLGen.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 07-Oct-2006 11:38:16   

LLBLGen Pro doesn't support 'derived' tables at the moment, i.e. joining with a selectlist of another query.

However, what I don't understand is that you select data from another set which has a 1:1 relation with the parent set, as you join on the PK field (TaskNo, at least that's what I assume is the PK). I.o.w.: that info is already available in 'a', or am I missing/overlooking something?

Frans Bouma | Lead developer LLBLGen Pro