Author | Message |
---|---|
HelloWorld
Posts: 88
|
Posted 18:10 Jul 04, 2009 |
Hi Dr. Sun, I'm wondering on whether there should be a relationship between Accident and Person, since it says that the insurrance company needs to know the Person and Car that is involved in an accident.. However, I thought that since there's a relationship between Person and Car, and if there's a relationship between Car and Accident, then we can find Person has the Car that is involved in the Accident.. Therefore, we don't need a relationship between the Person and the Accident..?? Thanks, |
cysun
Posts: 2935
|
Posted 09:46 Jul 05, 2009 |
Several people can be listed under one policy, and you need know which one of them was driving when the accident happened. And this. |
HelloWorld
Posts: 88
|
Posted 23:35 Jul 06, 2009 |
Ok, but I'm thinking on whether we need the car and driver name as an immediate information? Such that if I just query the Accident table: SELECT * FROM Accident WHERE date = now(); I have both the car and driver name that is involved in the accident.. Another way is to join tables.. |
cysun
Posts: 2935
|
Posted 07:41 Jul 07, 2009 |
If "immediate information" means being attributes of the Accident entity set, the answer is no. And BTW, you won't get anything if you do "WHERE date = now()". |
HelloWorld
Posts: 88
|
Posted 07:45 Jul 07, 2009 |
Thanks! yeah, I just made that up.. |