Chapter 9 Databases: Unit 9.1: Databases Flashcards
Define database
Structured collection of data that allows people to extract information in a way that meets their needs.
What types of data can be stored in a database?
Text, numbers, pictures; anything that can be stored on a computer.
Define single-table database
Database that contains only one table.
Why are databases useful?
Prevent problems occurring because:
If any changes or additions are made it only has to be done once - data is consistent
The same data is used by everyone
Data is only stored once in relational databases which means no data duplication.
What are databases used for?
To store information about people, things, events, etc.
Define record
A row in a table
Define field
A column in a table
What are the 6 data types?
Text/alphanumeric
Character
Boolean
Integer
Real
Date/Time
Define SQL
Standard Query Language for writing scripts to obtain useful information from a database.
Define SQL script
List of SQL commands that perform a given task, often stored in a file so the script can be reused.
What are the 6 SQL Query statements?
SELECT - Fetches specified fields (columns) from a table
FROM - Identifies the table to use
WHERE - Includes only records (rows) in a query that match a given condition
ORDER BY - Sorts the results from a query by a given column either alphabetically or numerically
SUM - Returns the sum of all the values in a field (column)
COUNT - Counts the number of records (rows) where the field (column) matches a specified condition