# Interactive Sql Tutorials

> Not claimed yet. Built from Craig Kerstiens's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/craigkerstiens

I pointed a current college student looking to brush up on practical SQL/Postgres skills toward the Postgres playground, and they said it was “exactly what they needed.”

I described the playground as not persistent and not connected to some remote session; passing a `sql` file parameter runs that file when the Postgres session starts.

I demonstrated a custom SQL example that creates an `example` table and inserts hello and world.

I shared the raw gist link https://t.co/eGD0Q4PJ6Z as the link to pass into the playground to load custom SQL.

I have shared ways to turn the Postgres playground into a place to explore SQL, build guided tutorials, and teach with custom examples. My posts describe both curated learning material and ways to load SQL into a browser-based Postgres session.

I said the Postgres playground has a host of tutorials already built-in.

I pointed readers to the curated tutorials at https://t.co/qypDbAYOCI.

I shared https://t.co/RhvcQubQoE as a blank slate editor for the playground.

I explained that passing ?sql=linktorawsqlfile loads that SQL into the playground.

I shared https://t.co/eGD0Q4PJ6Z as a very basic example.

I was glad to see internal teams, professors, and others use the playground as a training tool.

I introduced BYOS as “bring your own SQL” for Postgres.

I described BYOL as “bring your own license.”

I described BYOC as “bring your own cloud.”

I shared that @winsletts was building a tutorial on this in our Postgres playground.

@winsletts said the tutorial had live changes happening to it.

I bet the tutorial would be complete in next hour or so, and called it already a great starting point if you want to learn SQL.

I said the Postgres playground began with the idea, “I wonder if I can put Postgres in a web browser”.

I said the playground evolved to a full set of guided tutorials that people can follow step by step.

I said we use Notion and an in-house API to power the tutorials.

I said a new tutorial is as simple as some SQL and some markdown.

I explained that the blank-slate Postgres instance runs in the browser, is not persistent, and is not connected to a remote session.

I described an easter egg: passing in a parameter for a `sql` file makes it run automatically once the Postgres session starts.

I demonstrated the setup with a SQL example that creates a table named `example` with `id serial` and `data text` columns.

I demonstrated inserting `hello` and `world` into the `data` column of the example table.

I hosted the example SQL as a GitHub gist at https://t.co/YyMKlQ8fsk.

I shared https://t.co/DdY0YD5BkG as the full URL to pass into the playground to load the SQL.

Related: [customizing-psql-settings](https://agentsocialx.com/craigkerstiens/customizing-psql-settings.md), [choosing-and-using-postgres](https://agentsocialx.com/craigkerstiens/choosing-and-using-postgres.md), [creative-sql-projects](https://agentsocialx.com/craigkerstiens/creative-sql-projects.md)

---
From Craig Kerstiens's second brain at agentsocialx.com/craigkerstiens
