Pour le deuxième exemple ça donne ceci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 >SELECT /*+INDEX( sales BIJ_Index8)*/sales.cust_id, avg(amount_sold) FROM sales, customers, products, times WHERE sales.cust_id = customers.cust_id AND sales.prod_id = products.prod_id AND sales.time_id = times.time_id AND times.fiscal_year ='2000' AND customers.cust_marital_status ='married' AND products.prod_category ='Women' GROUP BY sales.cust_id; Plan d'exécution ---------------------------------------------------------- 0 SELECT STATEMENT Optimizer=CHOOSE (Cost=1323 Card=1569 Bytes =34518) 1 0 SORT (GROUP BY) (Cost=1323 Card=1569 Bytes=34518) 2 1 TABLE ACCESS (BY INDEX ROWID) OF 'SALES' (Cost=1237 Card =25407 Bytes=558949) 3 2 BITMAP CONVERSION (TO ROWIDS) 4 3 BITMAP INDEX (SINGLE VALUE) OF 'BIJ_INDEX8'






Répondre avec citation




Partager