Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> How to store data in vArray and use in If Statement
Hi friends,
I have table called ANI_Master which stores codes
Please look at following query.
SELECT CALL_START_TIME,
CALL_TYPE_ID, COUNT(CASE WHEN SUBSTR(ANI,1,8) IN
('+9198830','+9198831','+9198832') THEN ANI END) AS RELIANCE,
COUNT(CASE WHEN SUBSTR(ANI,1,8) NOT IN
In above case I need to use hardcoded values eg.
('+9198830','+9198831','+9198832') in CASE statement though there is
table ANI_master.
Is there any way to so that i can store the ANI values in array and
use that array in IF statements.
Thanking in advance
Sanjeev
Received on Mon Mar 12 2007 - 00:24:14 CDT
![]() |
![]() |