Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Skewed Data or What?
Hello All,
I am running this statement and got not get what this output means .
At each step in the plan the cardinality is not what is actually
returned.
for example at Step 0 Card = 412
but rows returned = 2598507
Is there something wrong ??
Is histrogram missing ??
When using ordered does the position of predicate and join conditions
matter?? Do the position of tables matter while using ORDERED ?
SELECT /*+ Ordered */
b.gl_cd,
party_cd
FROM BR.ACCOUNT c ,BR.VOUCHER_DTL b
WHERE party_type = '6'
AND b.gl_cd LIKE '0807%'
AND b.gl_cd = c.gl_cd ;
Execution Plan
Statistics
0 recursive calls 0 db block gets 798541 consistent gets 427805 physical reads 0 redo size
173235 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk)
Would it matter if I had written the statement like this using derived
table?
SELECT /*+ Ordered */
b.gl_cd,
party_cd
FROM (select * from BR.ACCOUNT where party_type='6') c ,(select * from
BR.VOUCHER_DTL where gl_cd like '0807%') b
WHERE
--party_type = '6'
--AND b.gl_cd LIKE '0807%'
--AND
b.gl_cd = c.gl_cd ;
With Warm regards
Jatinder Singh
Received on Thu Apr 27 2006 - 05:15:35 CDT