Chapter 2 Flashcards
(38 cards)
A database model is a conceptual framework for database systems, with three parts:
Data structures that prescribe how data is organized.
Operations that manipulate data structures.
Rules that govern valid data.
A table has
name, a fixed tuple of columns, and a varying set of rows
A column has
name and a data type.
A row is
unnamed tuple of values. Each value corresponds to a column and belongs to the column’s data type
A data type is a
named set of values, from which column values are drawn.
Database/Mathematics/File System
Table/Relation/File
A container for storing related data.
Database/Mathematics/File System
Row/Tuple/Record
A single entry or instance in the container.
Database/Mathematics/File System
Column/Attribute/Field
A property or characteristic of the entity.
Database/Mathematics/File System
Data Type/Domain/Data Type
Specifies valid values for data.
Relational operations - Select
selects a subset of (or all) rows of a table
Relational operations - Project
selects one or more columns of a table
Relational operations - Product
lists all combinations of rows of two tables
Relational operations - Join
combines two tables by comparing related columns
Relational operations - Union
selects all rows of two tables
Relational operations - Intersect
selects rows common to two tables.
Relational operations - Difference
selects rows that appear in one table but not another
Relational operations - Rename
changes a table name
Relational operations - Aggregate
computes functions over multiple table rows, such as sum and count
Relational rules -Unique primary key
All tables have a primary key column, or group of columns, in which values may not repeat
Relational rules - Unique column names
Different columns of the same table have different names.
Relational rules -No duplicate rows
No two rows of the same table have identical values in all columns
sublanguages-Data Definition Language
defines database structure
sublanguages-Data Query Language
retrieves data
sublanguages-Data Manipulation
Language
inserts, updates, and deletes
data.