Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can we use Like Operator for Multiple row subquery

597755Nov 23 2010 — edited Nov 23 2010
Hi,


I am trying to use LIKE operator in the below subquery. The subquery will return more than one row.

I am getting error in the LIKE operator condition.

Can anyone please help me out how to use LIKE Condition for multiple rows sub query.

SELECT
msi.segment1,
msi.description,
msi.unit_weight,
msi.unit_volume, mcb.segment1 category_code
from
mtl_system_items_b msi,
mtl_item_categories mic,
mtl_category_sets_tl mcs,
mtl_categories_b mcb
where
msi.segment1 like
'%' ||SELECT hca.orig_system_reference
from
hz_parties hz,hz_cust_Accounts hca
where
hz.party_id=hca.party_id
and
hz.party_name = 'Asda direct'|| '%'

Regards
Prabu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2010
Added on Nov 23 2010
4 comments
1,397 views