A previous question wanted to save each move to a database as a game of chess plays out. And asked what database to use to do this. Various possibilities were given:
MongoDb, CouchDb, MySql, SQLite
One answer in particular mentioned a traditional one to many mapping:
The only advantage I can see to a mongodb or couchdb is that you could conceivably store the entire match in a single record, thus making your data a little simpler. You wouldn't have to do the traditional one to many mapping between moves table and a game table.
What exactly does this mean and what would this look like in say PostgreSql so I have a concrete idea of what this means?
Below example Entity Relationship Diagram based on SQL 2005, but with some tweaks to datatypes it can be transferred to MySql or PostgreSql.