Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1987

How to index SQL with aggregate function SQL for Oracle?

$
0
0
Here the following is an example SQL shows you that select the maximum emp_address which is not indexed in the EMPLOYEE table with 3 million records, the emp_grade is an indexed column.

select max(emp_address) from employee a
where emp_grade<4000
[​IMG]
As 80% of the EMPLOYEE table’s records will be retrieved to examine the maximum emp_address string. The query plan of this SQL shows a Table Access Full on EMPLOYEE table...

How to index SQL with aggregate function SQL for Oracle?

Viewing all articles
Browse latest Browse all 1987

Trending Articles