RE: Wow - has anyone used ROW_NUMBER() to get around using a UNION statement when UNION ALL doesn't work??
Date: Fri, 5 Aug 2011 15:15:49 -0500
Message-ID: <C5533BD628A9524496D63801704AE56D6A315EBA9F_at_SPOBMEXC14.adprod.directory>
Doh! It is doing a HASH GROUP BY
(In the previous email I sent with the row source operations, it's in there...I looked at the first SORT UNIQUE, not the GROUP BY.
--->21369 HASH GROUP BY (cr=318486 pr=183848 pw=45 time=23546310 us)
Chris Taylor
Sr. Oracle DBA
Ingram Barge Company
Nashville, TN 37205
Office: 615-517-3355
Cell: 615-663-1673
Email: chris.taylor_at_ingrambarge.com<mailto:chris.taylor_at_ingrambarge.com>
CONFIDENTIALITY NOTICE: This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and delete the contents of this message without disclosing the contents to anyone, using them for any purpose, or storing or copying the information on any medium.
From: Wolfgang Breitling [mailto:breitliw_at_centrexcc.com]
Sent: Friday, August 05, 2011 2:53 PM
To: Taylor, Chris David
Cc: 'oracle-l_at_freelists.org'
Subject: Re: Wow - has anyone used ROW_NUMBER() to get around using a UNION statement when UNION ALL doesn't work??
Do you by chance have hash_group_by disabled - because of legacy code which expects group by to render rows in order without an explicit order by ?
In case the answer is yes, how does the union perform if you enable it for this session / sql ?
On 2011-08-05, at 1:30 PM, Taylor, Chris David wrote:
My bad...appears it is a SORT UNIQUE.
Some info for the UNION statement for those interested.
-- http://www.freelists.org/webpage/oracle-lReceived on Fri Aug 05 2011 - 15:15:49 CDT