permaculture playing cards*
The moose likes Java in General and the fly likes merging 2 resultset and printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "merging 2 resultset and printing" Watch "merging 2 resultset and printing" New topic
Author

merging 2 resultset and printing

ranga shreya
Greenhorn

Joined: Mar 05, 2005
Posts: 20
I am getting 2 resultset 1 has more records key is taskno.
another one has less records key is takno.
How can we merge and these two and print it in sorting order.
task nos arein string (condition is we have compare strings)
Thanks
Ranga


Thanks,<br />Ranga.<br />Life is precious so enjoy the life each moment and utilise it at the same time.
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Can you write the query using an SQL UNION? Then you can have your DBMS do the sorting.

How to print: http://java.sun.com/docs/books/tutorial/2d/printing/index.html


There is no emoticon for what I am feeling!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: merging 2 resultset and printing
 
Similar Threads
How can I get the previous record in Oracle?
ResultSet performance problem
List Sorting
PreparedStatement query
JCA Recorset Reading