wood burning stoves 2.0*
The moose likes JDBC and the fly likes get all the records from a child table ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "get all the records from a child table ?" Watch "get all the records from a child table ?" New topic
Author

get all the records from a child table ?

vianyrajnish rajnish
Ranch Hand

Joined: Apr 22, 2007
Posts: 70
Hi all,

I have a parent-child relation between tables in oracle .

Is there any way to get all the child records by giving the primary key of the parent table.

can any body give an idea to me ....

Thanks
Vinay rajnish
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1081

Yes,A simple join will solve your problem, but all the column value of parent table will repeated for every row of child table.

Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: get all the records from a child table ?
 
Similar Threads
Presenting Data to User
Help require on parent -child cascade ralationship in hibernate
specific TD value
Oracle table partitioning
How toPersist Value in the Tables Using Entity Bean