If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Help with database design

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-10, 12:43
Liuk Liuk is offline
Registered User
 
Join Date: Feb 2007
Posts: 11
Help with database design

Hi,
please could anyone help me in modeling a database for road traffic accident ?
I need a way to store the contributory factor of the accident. They could be classified as vehicle failure or human factor. The latter could be any of the traffic violation and some of that may be due to the physical state of the driver (under influence of alchool, drug, tiredness,etc).
Any accident could have one or more contributory factor.
Reply With Quote
  #2 (permalink)  
Old 06-14-10, 12:52
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Sure, what part of the assignment are you hoping we'll help you design? What have you done so far?

Before we go too far, do you have access to the teacher? They are usually your best source of help since they know exactly what their course expects to teach and what will be on the exams.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Old 06-14-10, 13:04
Liuk Liuk is offline
Registered User
 
Join Date: Feb 2007
Posts: 11
This is not an exam assignment.
I have to create a software for recording car accident data for statistical purpose. I post what i have done at now.
Please feel free to give any advice on the design.

Help with database design-caraccident.jpg
Reply With Quote
  #4 (permalink)  
Old 06-14-10, 14:29
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Ok, can you give us some input samples (the original forms or records), and more importantly detailed output requirements? This schema exists to collect data about vehicle accidents and transform that data into information of some kind. In order to help you with designing your schema, we need to know more about what you want that schema to do for you.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #5 (permalink)  
Old 06-15-10, 03:20
Liuk Liuk is offline
Registered User
 
Join Date: Feb 2007
Posts: 11
Well, the system will be used to get statistical report about car accident.
So it should be able to reply to questions like :
- Which are the main contributory factor of car accident ?
- Which are the main contributory factor per vehicle type ?
- How many killed or injuried person ?
- Fatalities by Highest Blood Alcohol Concentration ?
- how many motor vehicle occupants and nonoccupants killed and injured?
- number of pedestrian involved in car crashes
- accident by type of road
... and so on... there could be many more reports
(probably in the future the database should populate a datawarehouse).

Possible contributory factor could be classified into two main category :
- vehicle defect (bkeaks, tyres,...)
- human behaviour (high speed, Failure to signal, getting drunk during driving,...)
Reply With Quote
  #6 (permalink)  
Old 06-15-10, 16:11
Liuk Liuk is offline
Registered User
 
Join Date: Feb 2007
Posts: 11
I revised my earlier incident ERD.
This is my second, more detaled, version of the databse.
I have a big question about the Vehicle entity. In the statistica reports, i', intereseted in vehicle type, but i also need to discriminate which vehicle type a casualty is related to.
Example :
an incident involves a Car and a Truck with 3 injured in total, 2 car occupants and the trunck driver.

With this requirement do you think i need the vehicle entity (it has no significant attribute) ?

thanks
Attached Thumbnails
Help with database design-incident_erd.gif  
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On