An interactive SQL Tutorial by example! Quickly pick learn how to access data via SQL and aggregate it to find useful insights.
Quick Introductory SQL Concepts
Learn how to use SQL with your PostgreSQL database. In this interactive SQL data tutorial, get an introduction that is designed to get you querying your PostgreSQL database as quickly as possible. Learn SQL basics, tables and SQLbox.
Learn the SELECT SQL statement with your PostgreSQL database in this interactive SQL data tutorial. The SELECT statement is a basic SQL command to access data.
This interactive SQL tutorial will explain the FROM command with syntax and use cases on how to interact with your data in the PostgreSQL database. Learn how to use the SQL FROM command by following the steps in this interactive tutorial.
Learn how to use the SQL ORDER BY command in PostgreSQL. The ORDER BY command is used to sort your result data in ascending or descending order. Follow the interactive SQL tutorial to use cases and best practices for the ORDER BY command.
LIMIT and OFFSET
Learn how to LIMIT the number of results that are returned you can simply use the LIMIT SQL command at the end of the query to specify. You can use the LIMIT command on your PostgreSQL database. Read the tutorial to learn more.
Browsing the SCHEMA
SCHEMA is the collection of tables and relationships in your database. In this interactive SQL tutorial, learn how to browse a SCHEMA with PostgreSQL.
Basic SQL Practice Grounds
After you've got the basic SQL fundamentals. Put that knowledge to the test in these interactive SQL practice exercises.
Learn how to use the WHERE command in PostgreSQL. In this interactive SQL tutorial, learn the best practices of the WHERE command for analysis and exploration.
Learn about Operators in SQL and how to use them in Postgres. Operators are used to specify conditions in a SQL statement.
Learn about the COUNT function in SQL. The COUNT command is used to returns the count of how many rows there are. This interactive SQL tutorial will teach you how to COUNT.
The GROUP BY SQL statement is used to aggregate functions like COUNT, MAX, MIN, SUM and AVG. In this interactive SQL tutorial, learn to use the GROUP BY .
JOIN Relationships and JOINing Tables
A JOIN SQL statement combines two data from two tables together. In this interactive SQL tutorial, learn the most common JOIN statements.
DATE and TIME Functions
DATE and TIME values in PostgreSQL have a whole special set of functions and operators for their proper use. Learn how to use dates in PostgreSQL in this interactive SQL tutorial, so you can get the DATE and TIME of your data analysis.
Mid Level SQL Practice Grounds
After you've mastered mid-level SQL fundamentals, put that knowledge to the test in these interactive SQL practice exercises.
Copying Data Between Tables
Learn to copy data from a table or query into another table using the INSERT command in psql.
How to Create a Copy of a Database in PostgreSQL
Learn how to create a copy of a database in postgres using psql.
How to Export PostgreSQL Data to a CSV or Excel File
Learn how to export PostgreSQL data to a CSV or Excel file. Follow these instructions to copy tables, copy a query results, and open CSV files.
How to Start a PostgreSQL Server on Mac OS X
This article shows how to start a PostgreSQL server using both Homebrew and the potgres app on a Mac.
Importing Data from CSV in PostgreSQL
This article outlines how to use psql to import data from csv files.
How To Generate Random Data in PostgreSQL
You can generate random values and sequences in SQL. Learn how with this interactive PostgreSQL tutorial.
Using ALTER in PostgreSQL
Learn the different potential uses of the ALTER command in PSQL. Add and drop columns from tables. Rename and change schemas and more.