Flashcards › Math & Programming
Math & Programming

Free SQL Basics Flashcards

SQL is a language of a few dozen patterns that appear in every data job interview and every backend ticket. Make the core clauses reflexive and query-writing becomes about the data, not the syntax.

Study these 10 starter cards

QUESTION
Tap the card to reveal the answer
QSQL: basic query structure?
ASELECT columns FROM table WHERE condition
QSQL: difference between INNER JOIN and LEFT JOIN?
AINNER returns only matching rows; LEFT keeps all left-table rows with NULLs for non-matches
QSQL: filter grouped results?
AHAVING (WHERE filters rows before grouping)
QSQL: count rows per category?
ASELECT category, COUNT(*) FROM t GROUP BY category
QSQL: sort results descending?
AORDER BY column DESC
QSQL: what does DISTINCT do?
ARemoves duplicate rows from the result
QSQL: pattern-match a string?
AWHERE name LIKE 'A%' (% is any sequence, _ is one character)
QSQL: what is a primary key?
AA column (or set) that uniquely identifies each row
QSQL: return at most 10 rows?
ALIMIT 10
QSQL: what does NULL = NULL evaluate to?
ANULL (unknown) — use IS NULL to test for nulls

Turn these into lasting memory

Reading answers is recognition — remembering them next month takes spaced repetition. Build your own sql basics deck and we'll schedule every review at the right moment.

Create your free deck →

How to study sql basics with flashcards

Related flashcard topics

Multiplication TablesAlgebra BasicsGeometry FormulasPython BasicsJavaScript Basics

Your first deck is free forever

No ads, no credit card — import from Anki or Quizlet, or start from these cards.

Start studying free →