Geeks Talk

Prepare for your Next Interview




Merge Join Cartesian

This is a discussion on Merge Join Cartesian within the Oracle forums, part of the Databases category; Hello, i've a small question. The following code gives me an merge join cartesian *********** ** ** **** ** select distinct vzd.nr_rel_vzd nr_rel_vzd , vzd.nr_bron nr_bron from (select nvl(max(ins_nr),0) max_ins_nr ...


Go Back   Geeks Talk > Databases > Oracle

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-29-2008
Junior Member
 
Join Date: Sep 2008
Location: Amsterdam
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Richardh77 is on a distinguished road
Merge Join Cartesian

Hello, i've a small question. The following code gives me an merge join cartesian *********** ** ** **** ** select distinct vzd.nr_rel_vzd nr_rel_vzd , vzd.nr_bron nr_bron from (select nvl(max(ins_nr),0) max_ins_nr from eur_fct_nat_pers where id_bron = (select max(nr_bron) from eur_el_vzd where rownum = 1)) fct , eur_el_vzd vzd , eur_el_rel_adr_click rac where vzd.ind_fict = 'n' and vzd.nr_rel_vzd = rac.nr_rel(+) and vzd.nr_rol_vzd = rac.nr_rol_rel(+) and vzd.nr_bron = rac.nr_bron_rel(+) and (vzd.upd_nr >= fct.max_ins_nr or vzd.ins_nr >= fct.max_ins_nr or rac.upd_nr >= fct.max_ins_nr or rac.ins_nr >= fct.max_ins_nr) *********** ** ** **** ** explain plan select statement, goal = choose cost=10985 cardinality=53808 bytes=3067056 sort unique cost=10985 cardinality=53808 bytes=3067056 filter hash join outer merge join cartesian cost=2086 cardinality=124750 bytes=4491000 view object owner=dv_soft cost=1056 cardinality=1 bytes=13 sort aggregate cardinality=1 bytes=8 partition range single partition hash all table access full object owner=mart object name=eur_fct_nat_pers cost=1056 cardinality=133955 bytes=1071640 sort aggregate cardinality=1 bytes=4 count stopkey table access full object owner=dv_el object name=eur_el_vzd cost=1030 cardinality=249500 bytes=998000 table access full object owner=dv_el object name=eur_el_vzd cost=1030 cardinality=124750 bytes=2869250 table access full object owner=dv_el object name=eur_el_rel_adr_click cost=667 cardinality=242117 bytes=5084457 *** ** **** *** *** *** this is because the where conditions has an or statement in it. I can't get this merge join cartesian out. I've tried a union (and loose the or statement) but this is not good for the performance. I've already joint all tabels in the were clause. Anyone got an good suggestion? regards, richard
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-30-2008
Expert Member
 
Join Date: Sep 2007
Posts: 754
Thanks: 22
Thanked 64 Times in 63 Posts
krishnaindia2007 is on a distinguished road
Re: Merge Join Cartesian

Kindly post your question clearly.
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
What is the difference between self join and outer join? swapna23 SQL 4 07-17-2008 11:34 AM
How to merge two actions? jainbrijesh QTP 0 03-31-2008 03:44 AM
Report with cartesian product Pers.L Data Warehousing 0 01-24-2008 05:24 AM
A Join with many Join Specifications!!! hary kristen Seibel 0 01-07-2008 06:04 AM
Direct MP3 Joiner is an easy and fast audio tool to combine, merge or join MP3 files. JobHelper Geeks Lounge 0 02-07-2007 03:20 PM


All times are GMT -4. The time now is 01:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved