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!

Help with Select Decode !

1D10TOct 29 2012 — edited Oct 29 2012
Hello all

I dont have a idea how to write this Select. But this need to be in SQL not PL/SQL .

I want recive answer Yes or No from two select in one query how i can do that ?
(select decode(count(1),0,'No','Yes') from zia_all_diagnoses dgs where dgs.mse_mse_id = ZiaVMessages_EO.MSE_ID and dgs.ccn_class_codcontain_case_type = 'DV0002')

(SELECT DECODE (COUNT (1), 0, 'No', 'Yes')    FROM zia_all_diagnoses dgs   WHERE dgs.cse_cse_id = SgrVcases_EO.CSE_ID     AND dgs.ccn_class_codcontain_case_type = 'DV0002')
The result need to be
If someone of query return yes then i need to get Yes , if both ar No then No

Thanks

ID.

Edited by: 1D10T on Oct 29, 2012 8:04 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2012
Added on Oct 29 2012
4 comments
252 views