r/DatabaseHelp • • May 31 '18
[Homework] Looking for pointers
Hello,
I am having trouble understanding cardinality between entities. Let's say I have 2 entities and a join table. One table is filled with information about cars, and other one is filled with information about "person driving the car". Then I have a joint table "goes on a trip". In my case, cars can go on multiple trips and so can the person driving them.
I am having a super hard time wrapping my head around the relation between them. Should I be looking at entities in singular? One and only one car, can go on one and only one trip and same with person driving car.(at a time) Or one and only one car can go on many trips. Or many cars to many trips.. More I think about, the more confused I get. I have looked at examples and videos but I am not getting any clearer on it.
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] May 31 '18
Thank you, that helps a ton! Realized that I didn't provide enough information as well, but this example demonstrates the idea really well. For me, I guess.. I am having trouble wrapping my head around the idea of - do I look at an entity as singular when deciding the cardinality? Or will the said (car) for example, appear one or multiple times in another table? Thank you again for your quick response, you are a life saver!