File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Nested Record sets and Joins Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Nested Record sets and Joins" Watch "Nested Record sets and Joins" New topic

Nested Record sets and Joins

Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
Can some one give me a hand with my code.

I have 2 tables

Product Table
phonepricevalue table

I want to get the product name from the product table store it in an ArrayList and then pull the data from the phonepricevalue that corresponds to the product name and store that in the same Array.

Now what is the best way to create a join in my ArrayObject

1. Do I have sperate method method 1 get the name and ID create the Array and pass in into the next method to pull the data for each plan.

2. Do it with SQL some how that will let me jion the data and store it in the Array in one operation.

I'm using Oracle 8i weblogic 8.1



You can never drink too much
Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
this is all I needed to do

[ January 10, 2005: Message edited by: Jeanne Boyarsky ]
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33098

Thanks for posting the solution!

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Nested Record sets and Joins
It's not a secret anymore!