Database System & Concepts: Two Types of Database Structure
Database System & Concepts: Two Types of Database Structure
A database management system is a software package for creating and managing databases.
Many different types of database systems exist based on how they manage the database structure.
A flat file database stores data in a plain text file, with each line of text typically holding one record.
Delimiters such as commas or tabs separate fields. A flat file database uses a simple structure and,
unlike a relational database, cannot contain multiple tables and relations. Read more about flat file
databases.
A relational database contains multiple tables of data with rows and columns that relate to each
other through special key fields. These databases are more flexible than flat file structures, and
provide functionality for reading, creating, updating, and deleting data. Relational databases use
Structured Query Language (SQL) - a standard user application that provides an easy programming
interface for database interaction.
• one to one - where one table record relates to another record in another table
• one to many - where one table record relates to multiple records in another table
• many to one - where more than one table record relates to another table record
• many to many - where multiple records relate to more than one record in another table
These relations form functional dependencies within the database. Some common examples of
relational databases include MySQL, Microsoft SQL Server, Oracle, etc.
Finally, in object-oriented databases, the information is represented as objects, with different types
of relationships possible between two or more objects. Such databases use an object-oriented
programming language for development.