Section 1 Flashcards
What are the 3 parts of a database model?
- Data structures that prescribe how data is organized.
- Operations that manipulate data structures.
- Rules that govern valid data.
What data base model is used in SQL?
Relational Model: A model based on tabular data structure.
Set
An unordered collection of elements enclosed in braces.
Tuple
An ORDERED collection of elements enclosed in parentheses.
What does a table consist of?
A name, a fixed tuple of columns, and a varying set of rows.
A column has what?
A name and a data type.
Row
is an unnamed tuple of values. Each value corresponds to a column and belongs to the column’s data type.
Data type
is a named set of values from which column values are drawn
What is another name for Table in mathematics and Files?
Relation and File
What is another name for column?
Attribute and Field
What is anothr name for row?
Tuple and Record
What is another name for Data Type?
Domain and Data Type (Files)
What are the relational rules?
-Unique primary key
-Unique column names
- No duplicate rows
DDL (Data Definition Language
Defines the structure of the database.
DQL (Data Query Language)
Retrieves data from the database.