Skip to content
DeveloperPDFImagesFinanceUtilitiesLearnGamesWeatherCurrency
Sign in
  1. Learn
  2. SQL

SQL

Read a query someone else wrote, and write one that answers the question you were asked.

For anyone who needs to get an answer out of a database — analysts, developers, students. No prior SQL needed. The examples use standard syntax that works in PostgreSQL, MySQL and SQLite alike unless a difference is called out.

4 lessons · about 10 minutes

Start: SELECT and WHERE: asking for rows

Practise all 8 questions

  1. 1SELECT and WHERE: asking for rowsA query names the columns, the table, and the test each row must pass.3 min
  2. 2JOIN: rows from more than one tableA join matches rows across tables; which join you pick decides what happens when there is no match.3 min
  3. 3GROUP BY: one row per groupGrouping collapses rows, and every column you select has to survive the collapse.2 min
  4. 4Changing data without regretUPDATE and DELETE do exactly what you asked, including when you asked for everything.2 min

Every tool you need, in one fast and private workspace. Tools run in your browser; no ads, no trackers.

Workspaces

  • Developer
  • PDF
  • Images
  • Finance
  • India
  • Utilities
  • Live
  • Learn
  • Play

Categories

  • All tools
  • Calculators
  • India Tools
  • Developer Tools
  • Everyday Utilities
  • PDF & Documents
  • Image Tools
  • Device Tests
  • Gaming Tools
  • Charts & Graphs
  • Vehicle & Travel
  • Home & Everyday
  • Audio & Video
  • Study Calculators
  • Productivity
  • Business Documents
  • Science & Engineering
  • Games

Resources

  • About
  • Privacy
  • Terms
  • Contact
  • Your data

Free · Tools run in your browser · Accounts optional · © ToolsDev

HomeDeveloperToolsFinanceLearn