hi friends,
i want some sql queries with their optimized queries, means two queries should retrieve same result from sql 2005 database but one query performance should be more than the other
i need such type of pairs of sql queries can any one please help me on this
here i am attaching ont ppt file , in this optimized queries r there for the oracle database but i want this type of optimized queries for the sqlserver 2005 database, see the ppt file
Hey i want some sql queries with their optimized queries
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

ShankeyRank #972 · 2.1K reputationPosted Aug 27, 2010, 2:29 AM EDT
You can try following sample queries and can identify the time difference in executing these query: (Please dont forget to mark my answer as accepted if it helped you.
- select * from syscolumns
- select * from syscolumns(nolock)
for further detail you can read benefits of using "nolock"