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
- One fact per card. Card each JOIN type with a one-line "when to use" — the difference between LEFT and INNER is the most-tested fact in SQL.
- Rate honestly. After each card, choose Again, Hard, Good, or Easy — the spaced repetition algorithm uses your answer to decide when the card returns, right before you'd forget it.
- A few minutes daily beats marathons. Ten new cards a day is roughly 3,650 a year, retained. Deep dives: Flashcards for programmers · How to make flashcards that actually work.
Related flashcard topics
Your first deck is free forever
No ads, no credit card — import from Anki or Quizlet, or start from these cards.
Start studying free →