Skip to content

Commit

Permalink
add sql workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
karlderkaefer committed Nov 19, 2023
1 parent 1c37b5b commit 6ce7cd2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sql-basics/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ SQL (Structured Query Language) is a standard language for accessing and manipul

Let's get started with setting up your SQL environment and exploring some basic concepts!

## Create Database

First we need to create the database for the scenario. Execute the following command to create the database:

```bash
sqlite3 workshop.db "CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER);"
sqlite3 workshop.db "INSERT INTO users (name, age) VALUES ('Alice', 30), ('Bob', 25), ('Charlie', 35);"
```{{exec}}
## Viewing Table Structure
Expand Down

0 comments on commit 6ce7cd2

Please sign in to comment.