SQL Flashcards
What is SQL?
SQL is used to retrieve and manipulate data in DBMSs.
More focused on what to retrieve, delete or insert.
What is a data type?
The specific type of data a column can hold
ORDER BY
sorts the column in either ASC or DESC order
What is a foreign key?
Columns that have values linked with other tables
What does it mean to normalize?
Taking a database and applying a set of formal rules (NF1, NF2, NF3 depending on how the data is structured). Reduces redundancy and makes the database more flexible
What is a primary key?
A field that provides a unique key to every row in a table
What is a query?
A question/command concerning data from the database
What are parts of a query?
Clause, keyword, statement
What is a clause?
Clauses are segments of SQL statements that can combine to form a complete statement
What is a keyword?
words like SELECT and FROM that allow you to communicate with a database