Hi,
I am pretty new to LLBLGen style of coding... can you help me rewrite this kind of Sql query using DataAdapter...
Select Temp.CaseType, COUNT(*), AVG(Temp.Age)
From(
Select Table1.NAME As CaseType, DATEDIFF(day,Table2.OPENED_TIMESTAMP,CURRENT_TIMESTAMP) As Age
From Table2
Join Table1
ON Table2.CASE_TEMPLATE_ID = Table1.ID)As Temp
Group By Temp.CaseType
Thanks