Jasper - Oracle - query result table is repeated -
i cannot complex query table in jasper return single table. repeats resultant table same number of times number of rows returned. simple query overcome using where rownum<=1
.
with following query, 'where rownum<=1' helps nothing (it gives me 1 row result when there should many , still have multiple repeated tables):
select column1, column2, column3, column4, column5 the_table (column1 concat ($p{column1},'%')) , (column2 concat ($p{column2},'%')) , (column3 concat ($p{column3},'%')) , (column4 concat ($p{column4},'%')) , (column5 concat ($p{column5},'%')) , rownum<=1 order column4 desc
i'd 1 table returned in jasper report - not many there rows in table.
and rownum<=1
correct. must added in main query - not sub-dataset. :)
Comments
Post a Comment