-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: One to Many relationship
PostPosted: Fri Apr 08, 2005 12:42 pm 
Newbie

Joined: Fri Apr 08, 2005 11:37 am
Posts: 2
Hi Guys,
I have a question regarding one to many relationship.

I have the following two tables
1) Table A
program_id
2)Table B
raceId
race_number
program_id

I have defined a one to many relationship between table A to Table B using key program_id.

My question is, I would like to specify a query to retrieve one to many relationship, caz for the same program_id the data in Table B get's changed periodically and only inserts are allowed in Table B.I would like to rerieve only the latest record from Table B associated with program_id in Table A.

Thanks in advance
ag


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.