Ais CH4
Ais CH4
DATA HIERARCHY
Field – attributes about an entity
Record – related group of fields
DATABASE TERMINOLOGY
Database management Systems - The program that manages and controls the data and the interfaces
between the data and the application programs that use the data stored in the database.
database administrator - The person responsible for coordinating, controlling, and managing the database
database system - The data base, the DBMS, and the application programs that access the database through
the DBMS.
DATABASE SYSTEMS
o record layout - Document that shows the items stored in a file, including the order and length of the data fields
and the type of data stored.
Logical vs Physical
Physical - The way data are physically arranged
and stored in the computer system. logical view - How people conceptually organize,
- Depends on explicitly knowing: view, and understand the relationships among data
o How the data actually items.
Schemas
schema - A description of the data elements in a database, the relationships among them, and the logical
model used to organize and describe the data
- Three Levels:
1. conceptual-level schema - The organization-wide view of the entire database that lists all data
elements and the relationships between them.
2. external-level schema - An individual user’s view of
portions of a database;
- also called a subschema (A subset
of the schema; the way the user
defines the data and the data
relationships.)
3. internal-level schema - A low-level view of the entire
database describing how the data are actually stored and
accessed.
Data Dictionary
- Information about the structure of the database, including a
description of each data element
DBMS Languages
Data Definition Language (DDL)
DBMS language that builds the data dictionary, creates the database,
describes logical views, and specifies record or field security constraints
data manipulation language (DML)
DBMS language that changes database content, including data element
creations, updates, insertions, and deletions.
data query language (DQL)
High-level, English-like, DBMS language that contains powerful, easy-to-
use commands that enable users to retrieve, sort, order, and display data
report writer - DBMS language that simplifies report creation.
RELATIONAL DATABASES
data model - An abstract representation of database contents.
relational data model - A two-dimensional table representation of data;
- each row represents a unique entity (record) and each column is a field where record attributes are
stored.
tuple - A row in a table that contains data about a specific item in a database table.
Types of Attributes
primary key - Database attribute, or combination of attributes, that uniquely identifies each row in a table.
foreign key - An attribute in a table that is also a primary key in another table;
- used to link the two tables