It's not a secret anymore!
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
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
jQuery in Action, 3rd edition