How to join a Sub Query

Posts   
 
    
Amith
User
Posts: 23
Joined: 21-Aug-2008
# Posted on: 14-Apr-2010 22:52:46   

This is the SQL statement like :

SELECT InoiceId, InvoiceNumber, Amount FROM Invoice INNER JOIN ( SELECT ID = Max(Id), StatusId FROM InvoiceStatus Group By StatusId) AS t WHERE T.StatusId IN (1,6)

I tried with IEntityRelation and I cannot pass a sub query to the relation

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 15-Apr-2010 10:34:46