Hi all,
i have this sql query:
it will take 20 sec to return the results. How can i make the query faster?
Thank you.
i have this sql query:
PHP:
select t.TransID AS ID,t.TransItem AS summary, (select count(a.LogID) from TblAuditTrail a where a.TransID=t.TransID AND (a.UserID = 'idamanadm') AND (DatePart(Year, DateCreated) = 2013))as total from TblTrans t where t.TransID in (2,3,4) order by t.TransID
it will take 20 sec to return the results. How can i make the query faster?
Thank you.