SQL Flashcards
(37 cards)
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
ONE-TO-MANY
When an item in one table can be found in multiple references in another table
FOREIGN KEY
Points to a primary key from another table. It is not a unique identifier in it’s own table
PRIMARY KEY
Is usually the unique identifier in its table
ALIASING
Temporarily renaming a field with a name that exists only for the duration of the query
IDENTIFIER
Identifies a database object, often a table or the name of a field
OPERATOR
Take some action, such as adding fields or renaming or aliasing a field
EXPRESSION
Find specific sets of data
PARENT TABLE
The table that stores the primary key
CHILD TABLE
A table that uses a foreign key to reference the parent table