Posted: Fri Dec 03, 2004 10:34 am Post subject: WBIMB 5.0 Database Select with database MIN() function
Apprentice
Joined: 30 Oct 2002 Posts: 42
Can anyone tell me what is wrong with below esql statement. We are running WBIMB 5.0 CSD04
The esql is:
SET strCorrelId = THE (SELECT ITEM a.PARM1_TXT
FROM Database.adbfTable AS a
WHERE a.maint_by_uid = (select
MIN(b.maint_by_uid) from Database.adbftable AS b));
I am getting the following error in my exception lists:
FYI. I managed to get this to work by changing my esql to:
SET Environment.Data[] = PASSTHRU ('SELECT a.PARM1_TXT
FROM VFAI.INTG_PARMS_DTL AS a WHERE a.maint_by_uid = (select MIN(b.maint_by_uid) from VFAI.INTG_PARMS_DTL AS b)
');
If anyone has any input on negative performance issues using PASSTHRU, please let me know.
Troy _________________ IBM Certified Specialist - MQSeries
For consistency with my original posts, my changed esql is:
SET Environment.Data[] = PASSTHRU ('SELECT a.PARM1_TXT
FROM adbfTable AS a WHERE a.maint_by_uid = (select MIN(b.maint_by_uid) from adbfTable AS b) _________________ IBM Certified Specialist - MQSeries
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum