aspose file tools*
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
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
 
Don't get me started about those stupid light bulbs.
 
subject: get all the records from a child table ?
 
Similar Threads
Oracle table partitioning
How toPersist Value in the Tables Using Entity Bean
Help require on parent -child cascade ralationship in hibernate
Presenting Data to User
specific TD value