• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Insert more than one data in a table/entity

 
Greenhorn
Posts: 3
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am writing a database program in netbeans with GUI, but I have some problems. It's a crime database and as you know there are several entities like victims, suspects, witness, etc. Each of these entities have their own tables in the database (I am using Oracle). But as you also know, a crime can be committed by one or more person. I don't have a problem if the crime is committed by a person, I can easily input the data, but if it's two or more, I have no idea. How do I add a whole new data for the same entity for the second suspect? Where will the data be stored? And how do I do that? I really have no idea.

Thanks in advance.
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Crime database ... cool. First you need to understand the database structure and relationship. Making a entity-relationship (ER) diagram for the DB is a good starting point.

 
reply
    Bookmark Topic Watch Topic
  • New Topic