Appendix 5.6 Flashcards
5.6 What is a relational database?
A relational database is a collection of interrelated two-dimensional tables, consisting of rows and columns.
+ [RD is NOT one big table—usually called a flat file.]
+ [Flat file? A file that contains all of the records and attributes. The design of a flat file entails far too much data redundancy.]
+ [A RD is usually designed with a number of related tables.]
5.6 What do a relational database’s rows and columns represent.
Each row represents a record, and each column (or field) represents an attribute (or characteristic) of that record.
5.6 What is a primary key, secondary and foreign key?
Every record in the database must contain at least one field that uniquely identifies that record so that it can be retrieved, updated, and sorted.
- This identifier field, or group of fields, is called the primary key. In some cases, locating a particular record requires the use of secondary keys.
- A secondary key is another field that has some identifying information, but typically does not uniquely identify the record.
- A foreign key is a field (or group of fields) in one table that matches the primary key value in a row of another table. A foreign key is used to establish and enforce a link between two tables.
5.6 What is a data model?
Data model is a diagram that represents the entities in the database and their relationships.
5.6 What is an entity?
Entity is a person, place, thing, or event about which an organization maintains information.
5.6 What are the disadvantages of relational databases?
Large-scale databases can be composed of many interrelated tables.
Result: the overall design can be complex, leading to slow search and access times.
5.6 What are the two types of query languages?
- Structured Query Language (SQL)
- Query by Example (QBE)
5.6 Describe SQL.
Structured query language (SQL) is the most popular query language used for interacting with a database. SQL allows people to perform complicated searches by using relatively simple statements or key words.
Typical key words are SELECT (to choose a desired attribute), FROM (to specify the table or tables to be used), and WHERE (to specify conditions to apply in the query).
5.6 Describe QBE.
In Query By Example, the user fills out a grid or template—also known as a form—to construct a sample or a description of the data desired.
Users can construct a query quickly and easily by using drag-and-drop features in a DBMS such as Microsoft Access.
Conducting queries in this manner is simpler than keying in SQL commands.
5.6 What is entity relationship modeling?
The process of designing a database by organizing data entities to be used and by then identifying the relationships among them.
5.6 What is an entity in ERM (entity relationship modeling)?
- Definable thing or concept within a system, such as a person/role (e.g. Student), object (e.g. Invoice), concept (e.g. Profile) or event (e.g. Transaction)
- In ER diagram, the term “entity” is often used instead of “table”, but they are the same.
- When determining entities, think of them as nouns
5.6 What are entity attributes in ERM?
Also known as a column, an attribute is a property or characteristic of the entity that holds it.
5.6 What are relationships in ERM?
Relationships illustrate an association between entities.
5.6 What are business rules in ERM? Hint: PPP
Business rules are precise descriptions of policies, procedures, or principles in any organization that stores and uses data to generate information.
To properly identify entities, attributes, and relationships, database designers first identify the business rules for the particular data model.
5.6 What is the degree of a relationship in ERM?
The degree of a relationship indicates the number of entities associated with a relationship.