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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How can I avoid the "Single row subquery returns more than one row" message

Re: How can I avoid the "Single row subquery returns more than one row" message

From: <joelsung_at_my-deja.com>
Date: 2000/04/17
Message-ID: <8dg1cl$lt8$1@nnrp1.deja.com>#1/1

Try using "ANY" in front of your sub-query.

SELECT COLUMN
FROM TABLE_A
WHERE COLUMN = ANY(SELECT TABLE_B.COLUMN

                   FROM TABLE_B
                   WHERE (join sub-query to query)


Sent via Deja.com http://www.deja.com/
Before you buy. Received on Mon Apr 17 2000 - 00:00:00 CDT

Original text of this message

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