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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Combine Queries with LIKE Clause

Re: Combine Queries with LIKE Clause

From: DA Morgan <damorgan_at_exesolutions.com>
Date: Sat, 18 Jan 2003 09:11:42 -0800
Message-ID: <3E298ACE.DC64C844@exesolutions.com>


Sam wrote:

> I have two queries:
>
> select deptname from table1 (return 3 rows)
>
> select saleman from table2 where dept_desc LIKE '%table1.deptname%' (repeat 3 times)
>
> How to combine them together?

Likely the problem is that you have created a Cartesian join. But without seeing your SQL it is impossible to know.

Daniel Morgan Received on Sat Jan 18 2003 - 11:11:42 CST

Original text of this message

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