I am trying to create a java program that will lookup a value in a column in a table, and reference a different table to see if the same value is in the table. If they match, I would like to dump the full data from the first table into a new table.
Basically, I have a table of orders defined by a unique order ID. I would like to reference that number to a list of returned orders. If the order was returned, I can then dump the information from the order table to an unsuccessful order table.
I am not sure where to start or if anyone can lead me in the right direction. I am not super java savvy so any input is helpful.