CH 3 Final Flashcards
(30 cards)
Different ways to store data:
falt files and databases
flat files:
data is stored in one giant table. typically different functions have separate flat files that do not link to each other.
ex. excel
databases
data is shared between functions.
three types of databases:
hierarchical, networks and relational
Three anomalies:
insert, delete, update
data modeling:
process of defining a database so that it faithfully represents all aspects of the organization. the end result is a third normal form (3NF) database
databases are comprised of the following:
entities, attributes, records
entities
anything about which the organization wishes to store data.
i.e. employees, sales, payroll
entity info is stored in a table.
attributes
aka fields.
what you want to know about the entity.
columns in a table.
birthday of employee or SSN
records:
the individual instances in a table. stored in rows.
record = row
record keys:
primary keys and foreign keys
primary key:
i.e. customer #, invoice #, employee #, CWID
Primary key must be unique
foreign keys:
used to link tables.
primary keys from other tables.
REA meaning:
resource, event, agent.
resources:
things of value an organization acquires and uses (e.g. cash, inventory, equipment)
events:
business activities (e.g. sales order, sales event)
agents:
people and organizations (e.g. employees, customers, vendors)
when creating an ERD you should do what?
identify the events.
identify the resources and agents.
determine the linkages between entities.
determine the cardinalities.
o
|
zero
one
many
one to one is labeled as
1:1
one to many is labels as
1:N
Many to many is labeled as
M:N
When designing a database you should?
- create a table for each entity and for each many to many relationship.
- identify attributes, including primary keys.
- Assign foreign keys for each relationship that is not many to many.
when assigning foreign keys, remember
many to many relationships have no foreign keys.
for one to one and one to many relationships, put the foreign key where it will always be single-valued.