I have few questions on SQL..
How to analyze the performance of a query? Any software, inbuilt features of MSSQL server 2005/2008?
What shou
Use the SQL Server Management Studio, and include Actual Execution Plan
and SET STATISTICS TIME
and SET STATISTICS IO
.
This in corresponds to a JOIN
, but rewriting probably won't matter. A guess could be that you need indexes on enquiry_courses.enquiry_id
and on enquiries.session_id
to improve query performance.