Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Ifthenelse not calling Sequence table

$
0
0

Hi,

 

I am having an issue with sequence table by calling sql in ifthenelse but no records inserting using below statement. Can you please let me know, if below statement is correct?

 

ifthenelse(sql( 'DS', 'SELECT count(*) FROM schemxxx1.PRF, schemxxx1.EPRF WHERE PRF.PRFNAME = EPRF.PRFNAME')=0, sql('DS','select schemxxx1.seqprocessfamilyid.nextval from dual'),PRF.PRF_ID)

 

 

As per above statement, the below condition works (Separated condition from above)

SELECT count(*) FROM schemxxx1.PRF, schemxxx1.EPRF WHERE PRF.PRFNAME = EPRF.PRFNAME')=0

 

 

As per above statement, the below condition doesn't works for inserting sequence id(Separated condition from above)

sql('DS','select schemxxx1.seqprocessfamilyid.nextval from dual')

 

Can please help me whether the above statement correct, if correct why sequence table not generating records?

 

Thanks in advance,

 

Sri


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>