Summary
In this chapter, we considered how a single database table is much like a single spreadsheet, with four important differences:
-
All items in a column must have the same type.
-
The number of columns must be the same for all rows in a table.
-
It must be possible to uniquely identify each row.
-
There is no implied row order in a database table, as there would be in a spreadsheet.
We have seen how we can extend our database to multiple tables, which lets us manage many-to-one relationships in a simple way. We gave some informal rules of thumb to help you understand how a database design needs to be structured. We will come back to the subject of database design in a much more rigorous fashion in later chapters.
We have also seen how to work around many-to-many relationships that turn up in the real world, breaking them down into a pair of one-to-many relationships by adding an extra table.
Finally, we worked on extending our initial database design so we have a demonstration database design, or schema, to work with as the book progresses.
In the next chapter, we will see how to get the PostgreSQL up and running on various platforms.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 Neil Matthew and Richard Stones
About this chapter
Cite this chapter
(2005). Relational Database Principles. In: Beginning Databases with PostgreSQL. Apress. https://doi.org/10.1007/978-1-4302-0018-5_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0018-5_2
Publisher Name: Apress
Print ISBN: 978-1-59059-478-0
Online ISBN: 978-1-4302-0018-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books