>>Where and how do I actually enter the SQL query into Trac so that it's >>available to use? > > > "View tickets" / New Query ? Sorry, "Custom Query" /trac/report?action=new You need REPORT_MODIFY permission to add a new query, I believe.