Hi.

This is a second attempt. My first Email never got
posted.

I have the following query:

select a1.MBR_TYP_CDE MBR_TYP_CDE,
 (COUNT ( DISTINCT a1.NOVS_NTWRK_MBR_KYD ))  
DISTINCTALLMERCHCO
 from MDSS_STAR.NOVUS_NETWRK_MBR_D a1
group by a1.MBR_TYP_CDE

The explain plan for it is as follows:


0-0-5898 1.5898 SELECT STATEMENT    SQL1 Cost = 5898
1-0-1  2.1 SORT GROUP BY
2-1-1   3.1 SORT GROUP BY
3-2-1    4.1 SORT GROUP BY
4-3-1     5.1 TABLE ACCESS FULL NOVUS_NETWRK_MBR_D


It has three group by's and the query fails with
0ra-0600 [15851]. 

when I create a new table as select * from the old
table the plan changes:

0-0-9721 1.9721 SELECT STATEMENT    SQL1 Cost = 9721
1-0-1  2.1 SORT GROUP BY
2-1-1   3.1 TABLE ACCESS FULL NOVUS_NETWRK_MBR_D_TMP

and the query works. Does anyone have any guess as to
what is going on?

thank you for any help

Gene

=====


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gene Gurevich
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to