SQL Flashcards
What does CRUD stand for?
Create, Read, Update, Delete
What is the SQL command for reading data (R in CRUD)
SELECT … FROM
What is the symbol for selecting all?
- the asterisk
What does SQL stand for?
Structured Query Language
What are rows called in databases?
records
is SQL case sensitive?
no, but it is convention to write SQL statements in uppercase
what is the resulting data from a SELECT statement called?
the result-set
What does the DISTINCT keyword do with the SELECT statement?
selects and returns only distinct/different values (no duplicates)
What is the syntax for the WHERE statement?
SELECT [column]
FROM [table_name]
WHERE [condition]
What is the WHERE clause used for?
To filter results and apply conditions
What word operators can the WHERE clause be used with?
AND, OR, and NOT
How do you order data results in SQL?
With the ORDER BY keyword
What are the two ways you can use the ORDER BY keyword to order data?
Order ascending with the ASC keyword, or order descending with the DESC keyword