SQL Flashcards
SQL
SQL, a programming language used to manipulate and query data in relational databases
the language used in talking to relational databases
Relational database
A type of database in which the relationships between the data points matter, and that requires a programming language to pull desired data
Field
A column in a database table
Record
A row in a database table
CRUD Functionality
Create
Read
Update
Delete
SELECT
Requests a column of tabular data
FROM
Specifies the table to access. Specifies what fields you want information from
WHERE
Sets conditions for inclusion. Specifies what tables those fields are coming from
GROUPBY
Aggregates the resulting rows into groups. Specifies how to aggregate the results
HAVING
Specifies any criteria that the aggregate results should meet
ORDER BY
Determines how the data is ordered. Specifies how to sort the results. Sorts all selected fields based on the value of one or more fields. By defaults, sorts in ascending order
ORDER BY… DESC
Sorts data in descending order
LIMIT
Determines how the data is limited in count. Specify how many records/rows to return in results
KEY
The attribute that uniquely identifies each item in the list
SCHEMA
A representation of tables that only shows the columns, The structure of a database or table, indicating how the data is organized and connected