This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "merging 2 resultset and printing" Watch "merging 2 resultset and printing" New topic

merging 2 resultset and printing

ranga shreya

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,<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:

There is no emoticon for what I am feeling!
I agree. Here's the link:
subject: merging 2 resultset and printing