Join Queries

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 18-Oct-2006 06:19:24   

SELECT * FROM tblCustomers INNER JOIN tblResellerSuppliers ON tblCustomers.CustomerID = tblResellerSuppliers.AllocatedSupplierID
WHERE ResellerID = @ResellerID ORDER BY Name

How would i execute this query using the generated code?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 18-Oct-2006 07:53:29   

Please check the example provided in the manual under the title Multi-entity filters in the following path: "Using the generated code -> Adapter/SelfServicing -> Filtering and sorting -> Advanced filter usage"

Also in the docs check the example at How do I filter on fields in another entity? in the following path: "Best practises -> How do I ... ?"