Install DB Browser for SQLite
- Go to sqlitebrowser.org → Download.
- Windows: choose the Standard installer for 64-bit Windows. Mac: the .dmg. Linux: your package manager (
sqlitebrowser). - Install with the default options and open DB Browser for SQLite.
Open the practice database
- Download psalmedu-shop.db (below this lesson). Keep it somewhere you'll find it, e.g. Documents\SQL course.
- In DB Browser: File → Open Database (or Ctrl+O) → choose the file.

Three tabs you'll use
- Database Structure — every table and its columns, with their data types. Click ▸ next to a table to expand it.
- Browse Data — look at a table like a spreadsheet. Pick the table from the drop-down; click a column heading to sort; type in the filter row under the headings to filter.
- Execute SQL — where you write queries. Type, then run with Ctrl+Return, F5 or the ▶ button. Results appear underneath, with a message such as 400 rows returned, or an error explaining what went wrong.
Look around
The database has seven tables:
| Table | One row per… |
|---|---|
branches | shop branch (6) |
customers | registered customer (400) |
products | product on sale (30) |
staff | employee (25) |
orders | order (3,000) |
order_items | product line within an order (about 6,400) |
payments | payment for a delivered order |
Check yourself
Answer in your head first, then open each question to see the answer and why.
Which tab in DB Browser do you use to write and run queries?
- A Database Structure
- B Browse Data
- C Execute SQL
- D Edit Pragmas
Show the answer
C) Execute SQL — Execute SQL holds the editor and results.
Which shortcut runs the query in DB Browser?
- A Ctrl+S
- B Ctrl+Return (or F5)
- C Ctrl+O
- D Alt+F4
Show the answer
B) Ctrl+Return (or F5) — Ctrl+Return or F5 executes the SQL.
Why is SQLite convenient for learning?
- A It is the fastest database
- B The whole database is one file, with no server to install
- C It only works on Windows
- D It doesn't use SQL
Show the answer
B) The whole database is one file, with no server to install — SQLite needs no server — you just open the file.
More free lessons: What SQL is, and why employers want it · WHERE: only the rows you need · COUNT, SUM, AVG, MIN and MAX · INNER JOIN: combine two tables · CASE: if-then logic inside a query · INSERT, UPDATE and DELETE — safely · From a business question to an answer