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!

subquery in decode:

Rajnish ChauhanJun 16 2016 — edited Jun 23 2016

Hi

i have query below, but it is giveing me error 'subquery return more then one row',

how to resolve ,because i want to check column value in subquery..

please provide alternate solution of this.

SELECT * FROM RAPIN_PENDING RP

WHERE RECIPIENT_PMN = decode('ALL','ALL',

                                       ( select distinct(ROAMING_OPERATOR)

                                        from BILATERAL_AGREEMENT

                                        where client_operator in (select tadig from userlogin_tadig WHERE username= lower('baysquare'))

                                        )

                                        ,'ALL');

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2016
Added on Jun 16 2016
16 comments
4,806 views