SQL tutorial v17

EDB Postgres Advanced Server is a relational database management system (RDBMS), which means it's a system for managing data stored in relations. A relation is essentially a mathematical term for a table. 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's important to remember that SQL doesn't guarantee the order of the rows in the table in any way (although you can explicitly sort them for display).

Tables are grouped into databases, and a collection of databases managed by a single EDB Postgres Advanced Server instance constitutes a database cluster.

This tutorial walks you through the main features of an RDBMS using a sample database.

sample_database creating_a_new_table populating_a_table_with_rows querying_a_table joins_between_tables aggregate_functions updates deletions the_sql_language

Sample database

Provides an introduction to the key elements of the sample database

Creating a new table

Describes how to create a new table

Populating a table With rows

Provides an example of how to populate table

Querying a table

Provides an example of how to query a table

Executing joins between tables

Describes how to execute a join query

Aggregating data

Provides an example of how to aggregate data

Updating a table

Provides an example of updating a table

Deleting a table

Provides an example of how to delete a table

The SQL language

Provides an introduction to the subset of the EDB Postgres Advanced Server SQL language that is compatible with Oracle databases