Flashcards › Technology & Coding › Databases
SQL Commands
Core SQL statements and database terms for querying and changing data.
0 of 72 known
72 cards
- SQLCommand or termStructured Query Language, used to work with databases
- DatabaseCommand or termAn organized collection of data
- TableCommand or termRows and columns of data in a database
- Row (record)Command or termOne entry in a table
- Column (field)Command or termOne attribute shared by all rows
- Primary keyCommand or termA column that uniquely identifies each row
- Foreign keyCommand or termA column linking to the primary key of another table
- SELECTCommand or termGets data from a table
- SELECT *Command or termGets every column
- FROMCommand or termNames the table to read
- WHERECommand or termFilters rows by a condition
- AND, OR, NOTCommand or termCombine or negate conditions
- ORDER BYCommand or termSorts the results
- ASC / DESCCommand or termSort ascending or descending
- LIMITCommand or termRestricts how many rows are returned
- DISTINCTCommand or termRemoves duplicate values from results
- LIKECommand or termMatches text patterns
- % wildcardCommand or termMatches any number of characters in LIKE
- _ wildcardCommand or termMatches exactly one character in LIKE
- INCommand or termMatches any value in a list
- BETWEENCommand or termMatches a range of values
- IS NULLCommand or termTests for missing values
- AS (alias)Command or termGives a column or table a temporary name
- INSERT INTOCommand or termAdds new rows to a table
- VALUESCommand or termGives the values for an insert
- UPDATECommand or termChanges data in existing rows
- SETCommand or termNames the columns to change in an update
- DELETE FROMCommand or termRemoves rows
- CREATE TABLECommand or termMakes a new table
- ALTER TABLECommand or termChanges a table's structure
- DROP TABLECommand or termDeletes a table entirely
- CREATE INDEXCommand or termMakes a table lookup faster
- COUNT()Command or termCounts rows
- SUM()Command or termAdds up values
- AVG()Command or termFinds the average
- MIN()Command or termFinds the smallest value
- MAX()Command or termFinds the largest value
- GROUP BYCommand or termGroups rows to use with aggregate functions
- HAVINGCommand or termFilters groups after grouping
- JOINCommand or termCombines rows from two tables
- INNER JOINCommand or termKeeps only rows that match in both tables
- LEFT JOINCommand or termKeeps all rows from the left table and matches from the right
- RIGHT JOINCommand or termKeeps all rows from the right table and matches from the left
- FULL OUTER JOINCommand or termKeeps all rows from both tables
- CROSS JOINCommand or termPairs every row of one table with every row of another
- UNIONCommand or termCombines results of two queries, removing duplicates
- UNION ALLCommand or termCombines results and keeps duplicates
- SubqueryCommand or termA query inside another query
- EXISTSCommand or termTests whether a subquery returns rows
- CASE WHENCommand or termConditional logic inside a query
- NULLCommand or termA missing or unknown value
- NOT NULLCommand or termA column must always have a value
- UNIQUECommand or termAll values in a column must be different
- DEFAULTCommand or termA value used when none is given
- CHECKCommand or termA rule that values must satisfy
- TransactionCommand or termA group of operations that succeed or fail together
- COMMITCommand or termSaves a transaction
- ROLLBACKCommand or termUndoes a transaction
- ViewCommand or termA saved query that acts like a table
- IndexCommand or termA structure that speeds up searches
- NormalizationCommand or termOrganizing tables to reduce repeated data
- SchemaCommand or termThe structure of a database
- Relational databaseCommand or termA database storing data in related tables
- One-to-many relationshipCommand or termOne row in a table relates to many rows in another
- Many-to-many relationshipCommand or termMany rows relate to many, using a join table
- ACIDCommand or termAtomicity, Consistency, Isolation, Durability, properties of reliable transactions
- SQL injectionCommand or termAn attack that sneaks harmful SQL into input; prevent with parameterized queries
- Parameterized queryCommand or termA query with placeholders for safe user input
- MySQL, PostgreSQL, SQLiteCommand or termPopular SQL database systems
- NoSQLCommand or termDatabases that don't use traditional tables, like document stores
- QueryCommand or termA request for data
- CRUDCommand or termCreate, Read, Update, Delete
Download this deck
- CSVExcel, Google Sheets, Numbers
- Anki / Quizlet (tab-separated)Import straight into Anki or Quizlet
- JSONFor programmers and apps
- Plain textOne card a line, “front : back”, ready for Peabody's flashcard maker to print
Want paper cards? Paste the plain-text download into the flashcard maker.