This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread 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 REST with Spring (video course) this week in the Spring 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
It's not a secret anymore!