MAX problem

Posts   
 
    
Posts: 7
Joined: 07-Mar-2008
# Posted on: 18-Jun-2008 20:06:24   

Hi..

I need some help with the following scenario.

I have two tables:

Member: MemberId (PK) FirstName LastName

Order: OrderId (PK) Identity MemberId (FK) Total

What i want is to get data of Members and their Last Order.. basically a MAX on the OrderId

I am using Adapter templates, LLBLGenPro v2.5, .NET 3.5 and SQL Server 2005

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-Jun-2008 04:23:18   

I recommend you to use DynamicList, DynamicList is bassically a datatable that you can fetch easily with LLBLGenPro filters, groupers, sorters, etc. If you want to use Entity objects, you could use one of these alternatives.

David Elizondo | LLBLGen Support Team