9.1 Databases Flashcards
What is a datatype
a classification of how data is stored, displayed, and of which operations that can be performed on the stored value
what are the 6 basic data types
» text/alphanumeric
» character
» Boolean
» integer
» real
» date/time
What is a primary key
a field in a database that uniquely identifies a record
What is SQL
Structured Query Language - standard query language for writing scripts to obtain useful information from a database
What is an SQL script
list of SQL commands that perform a given task
What is SELECT
Fetches specified fields (columns) from a table; queries
always begin with SELECT
what is FROM
Identifies the table to use
what is WHERE
Includes only records (rows) in a query that match a given condition.
what is ORDER BY
Sorts the results from a query by a given column either alphabetically or numerically.
what is SUM
Returns the sum of all the values in a field (column)
what is COUNT
Counts the number of records (rows) where the field (column) matches a specified condition
all queries end with what
;
how to select all
SELECT *
Describe text/alphanumeric (data type)
A number of characters
Describe Character (data type)
A single character