Indexing "QUERY PROCESSING TIME" AND factors responsible
hi i have following question which i would love to learn in detail
Emp ( empno,ename,hiredate,job,salary)
95% of job sal lies between 40000-45000 how can index on one field such as salary can increase or decrease query execution time ??
to give example of query
select empno,ename from emp
where salary/365>12;
Please explain or give link or share idea not only in this case but in other also how query execution time is affected ( have a relation with query optimisation concepts )
here we do not have to predict what time(query execution is faester or may be slower ie we have to guess) it may take which depends on some factors like arthmetic expression used, predefined sql syntax like set opertaions etc used in query , it is possible to predict whether query will execute faster or slower and what is responsible for it seeing the index and query just want to know in depth of the concept understanding from above example