Hi!

I`m sorry, but don`t you think that 2-to-many it`s the same as many-to-many?
:)

So, did you have a look at this page?
http://yarivsblog.com/articles/2006/08/30/many-to-many-relations-are-now-at-an-erlydb-near-you/

Just have a look, and I guess you won`t have this kind of question :)

Good luck!

On Mon, May 11, 2009 at 7:18 AM, unita_logica <[email protected]>wrote:

>
> I have a very simple DB representing a chess game/player scenario:
>
> Player table:  {id, name, score, etc}
> Game table:  {id, white_id, black_id}
>
> As you can see a Game is strictly a 2-to-many relationship so the
> easiest way to handle this is having 2 foreign keys (white and black
> players) exist in the Game table. I am aware my foreign key should be
> named "player_id" but in this case it obviously can't work as I would
> have 2 foreign keys with the same name.
>
> How do I tell ErlyDB to use my foreign keys in the Game table? Or how
> should I name them?
>
> Thanks in advance.
>
>
> >
>


-- 
With Best Regards,
Alexander Dergachev

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to