# Multiple relational tables theory

**URL:** <https://www.ruby-forum.com/t/multiple-relational-tables-theory/99244>\
**Category:** Rails\
**Created:** [January 31, 2006, 5:41am UTC](https://www.ruby-forum.com/t/multiple-relational-tables-theory/99244 "2006-01-31T05:41:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 31, 2006, 5:41am UTC](https://www.ruby-forum.com/t/multiple-relational-tables-theory/99244/1 "2006-01-31T05:41:39Z")

</div>

I’m a little unclear on theory here.

I have a number of tables but specifically…

clients  
placements  
facilities

A client may have only 1 placement  
A placement may have only 1 client but there may be many placements per  
client.  
A placement may have only 1 facility  
A facility may have only 1 placement but there may be many placements  
per facility

I’m wondering if it is necessary to store a facility relation in the  
client since the client will have one relation to the placement and the  
placement will have a one relation to the facility.

I do anticipate needing frequent reports that list clients per facility  
so that would be an advantage to store the facility in the client.  
Should I be creating a relationship between client and facility when the  
real relationship is between client and placement and the other real  
relationship is between placement and facility?

Craig
