I am sure someone has already asked this question, but I just cannot find it in the forums.
I have 2 tables Site and SiteTemplateType. Basically I want to build a search which returns me only SiteTemplateType records that are used in Site. I can build the following query on SQL and it returns me the correct result set.
SELECT DISTINCT ST.SiteTemplateTypeID, ST.SiteTemplateTypeName
FROM TBLSITE S
JOIN TBLSITETEMPLATETYPE ST
ON ST.SiteTemplateTypeID = S.SiteTemplateTypeID
Could someone point me in the right direction on how to do this with generated code? I am using adapter style.
Thank you,
Bruno Valle