Database
Database
Learning Objectives
Explain database systems, including logical and physical views, schemas, the
Explain data dictionary, and database management system (D B M S) languages.
Describe what a relational database is, how it organizes data, and how to
Describe create a set of well-structured relational database tables.
•
CEO, CFO
Conceptual-level—the
organization-wide view of the entire
database, lists all data elements
and the relationships among them.
• External-level—individual user’s
logical view of their portion of a Auditor view
database, each of which is referred
to as a subschema. - C - create new record
- R - Read
• Internal-level—low-level view of the - U - Update
- D - Delete
database, describes how the data
are stored and accessed, including
record layouts, definitions, IT
addresses, and indexes
3-15
Type of
Attributes
• A primary key is the
database attribute, or
combination of attributes,
that uniquely identifies a
specific row in a table.
• A foreign key is an attribute
in one table that is also a
primary key in another
table and is used to link the
two tables.
3-17
Primary Keys
3-18
Foreign Keys
• An attribute or combination of attributes that allows tables
to be linked together
3-19
Fundamentals of Relational Databases
Illustration of a Relational Database Using Primary and Foreign Keys for
Gizmos and Gadgets, a Phone Reseller
4-20
Relational Data Tables (1 of 2)
large table?
If a foreign key is not null, it must have a value that corresponds to the value of a
primary key in another table (referential integrity)
All other attributes in the table must describe characteristics of the object
identified by the primary key