Week 4 - Database Process 1 Flashcards
-Explain what the purpose of database in business process model -Create basic database -Using Chen's notation for ERD design
What is a database?
a self-describing collection of integrated records
What does a database contain?
- tables
- relationships among tables
- metadata
What do tables do?
represent business objects
What are the data elements?
-bytes/characters
-columns/fields
-rows/records
What is the hierarchy of data elements?
bytes/characters are grouped into columns/fields>grouped into rows/records>grouped into tables/files
Where does relationships exist among different tables?
rows
How are table relationship sentences structured?
noun, verb, noun
What is involved in the relationships between tables via keys
-primary keys
-foreign keys
What is a primary key?
unique identifier for each row in a table
What is a foreign key?
a column of fields that are Primary Keys in other tables (establishes relationship between tables)
Which key do all tables have?
Primary Keys
What is metadata?
data about the data - supports the organization and management of the database
What is data modelling also called?
Entity Relationship Modelling (ER) Modelling
What notation do we use in this unit?
Chens notation
What is an Entity?
a table in database
What is an entity instance?
a row in table
What is an attribute?
a column in table
What if you don’t have a primary key?
data is just a spreadsheet not a database
What is the notation for an entity?
-entity is placed inside a rectangle
-capital letters
-noun
What is the notation for an attribute?
-attribute is placed inside an ellipse
-first letter is a capital
-use underscore between words
-primary key is underlined
-noun
What is a relationship?
link between two tables
What is the notation for a relationship?
-relationship is in a diamond
-continuous lines connecting to entities
-verb
What is a relationship instance?
link between two table entries
What are the three Cardinal relationships?
-one to many
-many to many
-one to one