Dear Sir
After creating the indexes the output was executed in 1
milliseconds.But I would like to ask you one thing.Its seems like
after applying the indexes on the three tables the query became
faster.As well as the cost of the query is now after applying the
index is 156.Initially the cost was 28.How come there is a increase in
the cost after applying the indexes in the three table?Please help to
resolve the issue.?
There is no issue to be resolved there other than you do not understand what is in front of you; what you are seeing is what you expect to happen when you add a cost-effective index to your query.
You have to read about I/O Cost, CPU Cost and Cost.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks