Exam 1 Flashcards
Naming rules
Singular names are used for entities
Nouns are entity types, verbs are relationship types
Complex attributes
More than one residence with multiple parts of the address
What are important aspects of a model?
Only emphasizes selected aspects of the real world
Is described in some language
can be erroneous
may have features that do not exist in reality
Relationship
Defines a relationship set
Example: “WORKS_FOR” relationship
Degree of relationship is the number of participants
What may be a reason NOT to use a Database Management System?
- Need to support multiple users
- Need for persistent storage of data
- The overhead of providing security, concurrency control, recovery and integrity control
- Need for data independence
- The overhead of providing security, concurrency control, recovery and integrity control
Differences between databases and file processing
Each user maintains separate files and programs to manipulate those files
Describe the difference between schema and data
A schema describes the intention of the data. The data describes the extension. Data is information about reality.
What is atomicity? (in terms of DBMS transactions)
either everything in a transaction is executed or nothing is
What is a schema
A structure described in a formal language supported by the database management system (DBMS). The term “schema” refers to the organization of data as a blueprint of how the database is constructed
What is a naive end user?
querying and updating (posting withdrawals at a bank)
What are the workers behind the scenes?
They are not interested in the content of the database.
DBMS system designers and implementer.
Transaction
executing program that includes database access (reading or writing)
How to draw an attribute?
oval attached by straight line to entity
Ternary degree
Supplier, part, project
Program-operation independence
the user can operate on the data by using functions regardless of how the operations are implemented
What is controlling redundancy
Make sure data is not in more than one place.
DBMS interfaces
Menu based interface
Apps for mobile devices
Forms based interface
GUI
Natural language interfaces
Keyword-based database search
Speech input and output
Interfaces for parametric use
More advanced interfaces for the DBA (privileged commands)
What definition languages do SQL represent?
SQL represents DDL, VDL, and DML. SDL used to be part of it but was removed
Entity set / entity collection
All EMPLOYEE entities in the company
Entity type describes schema (intention) for a set of entities
Completeness (total) constraint (optional)
Every entity in a superclass must be a member of at least one subclass
Union Types
OWNER can be a COMPANY, a BANK, or a PERSON
It can be one of multiple entity types, but not more than one at once.
Only inherits one of the types, not all of them
Some models don’t have union sets
Total specialization
if every entity must be a member of a subclass
What is a casual end user of a database
occasionally use data but need help
NULL values
Doesn’t apply, for example: maiden name for a man or apartment number for a single family home
Both known and unknown nulls