Terms To Remember Flashcards
(233 cards)
What is a row called in a database?
A Record
What is a column called in a database?
Field
Databases: what function do they provide?
They organize the information we receive so that we can use it
Tables
A collection of rows and columns. A database can contain more than one table.
The structure of tables in the database?
Schema. The database’s schema includes the information about the layout of tables and other information about the database itself.
Relational Database
Tables are made up of rows and columns. Columns are the relation.
What are common column data types?
Number, text, date, true/false value, binary data
Composite Key
Two or more fields taken together to act as a unique identifier
Foreign Key
Primary key from one table when referencing another table
What are the three types of Database Relationships?
One-to-many
Many-to-many
One-to-one
Transaction
A set of operations that all must be completed
What does ACID stand for in relation to transactions?
Atomic
Consistent
Isolated
Durable
What does Atomic mean?
Means that the transaction is indivisible, that pieces of it can’t be separated out.
What does consistent mean?
Whatever the transaction does, it needs to leave the database in a valid or consistent state. Can’t violate integrity.
What does Isolated mean?
While the activities in the transaction are being completed, nothing else can make changes to the data involved
What does Durable mean?
Information actually gets written to the database.
SQL
Structured Query Language
What does SQL do?
Allows statements to be written for DBMS to interpret how to interact with data (DML)
Offers feature to manage the database itself, such as creating or modifying tables and controlling access to tables. (DDL and DCL)
What does CRUD stand for?
Create
Read
Update
Delete
A relationship connects two pieces of data in different _____ in the same _____.
tables; database
Which is a good example of a candidate key?
an employee ID number. Any piece of data that uniquely represents a row is a candidate key, and if you have a value that occurs in the data naturally, that’s a natural key.
How many SQL clauses are in this query?
SELECT Width,Height FROM Shapes;
two. Each keyword, SELECT and FROM, defines a single clause.
In a database, what is a relation?
a set of attributes (columns) that describe information about specific instances (rows) of an entity
This was the correct answer
When is an associative table useful?
when records need to be related in a many-to-many relationship. An associative (or linking) table relates foreign keys from different tables to associate their records.