dbTalk Databases Forums  

connect by clause

comp.databases.oracle.server comp.databases.oracle.server


Discuss connect by clause in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shankar72
 
Posts: n/a

Default connect by clause - 07-10-2003 , 03:56 PM







i have written this query on test database works fine but when we
transfered both tables and the query to production we are getting two
different results

the test version of oracle is- Oracle8i Enterprise Edition
Release 8.1.7.0.0
the procuction version is -Oracle8i Enterprise Edition Release 8.1.7.4.0
is this causing the problem?

SELECT 1 nivel, p.part_no item_number, ' ' mli, p.description, '1'
quantity, 'EA' uom,'9' make
FROM table_name p
WHERE part_no = '*'
UNION ALL
SELECT a.nivel, a.part item_number, ml_no mli, b.description,
a.quantity, b.uom,
b.make
FROM (SELECT LEVEL + 1 nivel, a.*
FROM essen_bom a
CONNECT BY assembly = PRIOR part AND assembly <> part
START WITH assembly = '*'
ORDER BY ess_hier_order) a,
table_name b
WHERE a.part = b.part_no

--
Posted via http://dbforums.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.