Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Intersect used in stored procedure

Re: Intersect used in stored procedure

From: Geoff White <whiteg_at_ccis.adisys.com.au>
Date: Fri, 09 Apr 1999 10:17:33 +0800
Message-ID: <370D633D.BB8AFD18@ccis.adisys.com.au>


An obvious problem I can see is that you have an unequal number of elements in your select lists.
That is, you have:

      select user,cohort, 'Both' "Type", 'Eligible', count(*) from that's 5 elements compared to

    select substr(a.id,7,2) cohort, substr(a.id,1,5) subid which is 2 elements. Have you run the full INTERSECT query from SQL*plus?

HTH
Geoff

Peter Wendell wrote:

> I am really stuck and confused. I've written a pl/sql procedure which
> executes a series of insert statements. All of the queries run fine from
> the worksheet, but when I try to compile I receive a MSG-00072 error
> that the package body has compilation errors. If I paste the contents of
> the package body into the the SQL worksheet, all the queries run without
> error. Two of the insert queries use INTERSECT to combine two result
> sets. If they are removed, the package body compiles without complaint.
> <snip>
Received on Thu Apr 08 1999 - 21:17:33 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US