bpamarti Posted September 29, 2009 Share Posted September 29, 2009 My dataset that is being passed to the report template is as under:Id Name Appt TIme Appt Location11 SampleName 8:00AM Location A11 SampleName 10:00AM Location B12 SomeName 7:00AM Location A12 SomeName 11:00AM Location B For each "Id" there can be any number of rows with different appointment times. I just want to print "One" row for each Id with earliest appointment time. So the detail band in the jasperreports should print -- Id Name Appt TIme Appt Location11 SampleName 8:00AM Location A12 SomeName 7:00AM Location A Is there any functionality to do this in jaserreports. Any help greatly appreciated!! Post Edited by bpamarti at 09/29/2009 20:19 Link to comment Share on other sites More sharing options...
svenn Posted September 30, 2009 Share Posted September 30, 2009 Is the data in a database?Is it stored in one table or mutiple tables? Link to comment Share on other sites More sharing options...
linvicch Posted September 30, 2009 Share Posted September 30, 2009 u can do this via sql, get the id and appttime as a subquery and join to it where the id=id and apptTime=apptTime. google "select top from group by" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now