java - Maximo setWhere() query to get distinct results? -


i'm trying sql query:
select distinct wonum invreserve location='01' order wonum;

how can converted setwhere() query? i've tried:

invreserveset.setwhere("(1 = 1) , wonum in (select distinct wonum invreserve location='01')");

work this:

select invreserveid invreserve invreserveid in (select invreserveid invreserve invr2 location '%b%' , invreserveid = (select max(invreserveid) invreserve invr3 invr3.location = invr2.location , invr3.wonum = invr2.wonum))  ;   

so clause same ones except location wildcard different.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -