By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,719 Members | 1,046 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,719 IT Pros & Developers. It's quick & easy.

How to write query with two select statements in db2

P: 2
Hi All,
In one of my UDF i have writen the query as shown below, but it is throwing sme errors. Can any one help me to solve this problem.....very urgent....

IF ((select enrole.ADAccount.erparent from enrole.ADAccount) = PersonDN) THEN

SET AD = (SELECT enrole.process.completed FROM enrole.process where ((enrole.process.type='AA') and (enrole.process.requestee=PersonDN)));

END IF;

IF ((select enrole.NotesAccount.erparent from enrole.NotesAccount) = PersonDN) THEN

SET LN = (SELECT enrole.process.completed FROM enrole.process where ((enrole.process.type='AA') and (enrole.process.requestee=PersonDN)));

END IF;


Thanks in advance,
Hari
Aug 21 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.