Here are some examples of basic SQL queries based on the Monopoly database used in labs 7–9. You can run them in PostgreSQL.

Single-Table Queries in PostgreSQL

The simplest SQL queries are those queries that reference only one table.

Multiple-Table Queries in PostgreSQL

Many useful queries require that we link two or more tables together. These multi-table queries are commonly called join queries. Here are some examples: