Chapter 1. Getting Started

Table of Contents
1.1. Concepts
1.2. Sample Database
1.2.1. Sample Database Installation
1.2.2. Sample Database Description
1.2.3. Sample Database Diagram
1.2.4. The edb-sample script
1.2.5. Sample Tables
1.3. Creating a New Table
1.4. Populating a Table With Rows
1.5. Querying a Table
1.6. Joins Between Tables
1.7. Aggregate Functions
1.8. Updates
1.9. Deletions

1.1. Concepts

EnterpriseDB is a relational database management system (RDBMS). That means it is a system for managing data stored in relations. A relation is essentially a mathematical term for a table. The notion of storing data in tables is so commonplace today that it might seem inherently obvious, but there are a number of other ways of organizing databases. Files and directories on Unix-like operating systems form an example of a hierarchical database. A more modern development is the object-oriented database.

Each table is a named collection of rows. Each row of a given table has the same set of named columns, and each column is of a specific data type. Whereas columns have a fixed order in each row, it is important to remember that SQL does not guarantee the order of the rows within the table in any way (although they can be explicitly sorted for display).

Tables are grouped into databases, and a collection of databases managed by a single EnterpriseDB server instance constitutes a database cluster.