Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have a query like-

select x, sum(y) from xyz where z>=100 group by x order by sum(y) desc;

will it be faster if I am going to add index on x?

share|improve this question
2  
Please do not cross-post: stackoverflow.com/questions/20298486/… –  ypercube Nov 30 '13 at 9:19
    
    
sorry i was not aware about that this both are same. –  Aamir Dec 5 '13 at 8:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.