• Post Reply Bookmark Topic Watch Topic
  • New Topic

One-to-many association

 
subhashchandra medhiassam
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like to create two tables,say A1 and B2, such that there is a one-to-many association from A to B. How should i proceed? I would like to use JDBC.

Kindly help.

Thanks,
Subhash
 
Campbell Ritchie
Marshal
Posts: 53175
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You draw the tables in UML and put cardinality numbers on the lines joining them. Find an SQL tutorial and it should tell you how to do it.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!