Chapter 1 Flashcards
What is a database?
collection of related data
What is database management system?
A software system that enables users to define,create, maintain and control access to the database
Allows users to insert,update,delete, and retrieve from the database through Data Manipulation Language(DML)
What are the roles in the database environent?
Data Admin-responsible for the management of the data resource, including planning,development and maintenance of standards,policies,conceptual and logical design Database Admin(DBA)- responsible for the physical realization of the databasement including physical database design and implementation,security and integrity control,maintnence of the operaitonal system, and ensuring satisfactory performance of the application of users. It is more technicallly oriented than the DA.
Logical Database Designer-Considered with identifying the data,relationships between the data, and constraints on the data
Needs to have a thorough and complete understanding of the organization’s data and constraints on the data
Physical Database Designer-decides how the logical database design is to be physically realized
Mapping the logical database design into a set of tables and constraints
Selecting specific storage structures and access methods
Designing any security measures
1.4.4 End-Users
Clients of the database-can be classified accordingly
Naieve users-typically unaware of DBMS such as a clerk
Sophisticated Users-familiar with the structure of the db and facilities offered by the dBMS
pros and cons of DBMS?
Control of Data redundancy- traditional file-based systems waste space by storing the same information in more than one file
Attempts to eliminate redundancy by integrating the files so that multiple copies of the same data are stored
Controls the amount
Data consistency- by eliminating the redundancy, we reduce the risk of inconsistencies occurring
If a data item is stored only once in the database, any update to its values must be only performed once
If a data item is stored more than once and the system is aware of this, the system can ensure that all copies of the items are kept consistent- no automatica way
More information from the same amount of data-may be possible to derive additional information from the data
More communication between networks
Sharing of data-belongs to the entire organization and can be shared by all authorized users
New applications can build on the existing data in the database and add only data that isnt stored
Improved Data Integrity- Validity and consistency of stored data
Usually expressed in terms of constraints ->consitency rules that the database is not permitted to violate
Improved security- protection of db from unauthorized users
Can be things like usernames and passwords and views
Improved backup and recovery services- provide facilities to minimize the amount of processing that is lost following a failure
what are the cons of a dbms?
omplexity- failure to understand the system can lead to bad design decisions
Cost of DBMS- can be taxed
Performance- file system is more specific so it can have better performance
what are the three levels of database architecture?
The users view of the database. THis level describes that part of the database that is relevant to each user
Consists of a number of different external views of the database
Different views may have different representations of the same data
2.1.2 Conceptual Level
The community view of the database. THis level describes what data is stored in the database and the relationships among the data
Contains the logical structure of the entire database as seen by the DBA
Represents all entities,attributes,relationships,constraints,semantic information on the data,etc
2.1.3 Internal Level
The physical representation of the database on the computer - describes HOW the data is stored in the database
Covers the physical implementation of the database to achieve optimal runtime performance and storage space utilization
Interfaces with the os access methods to place the data on storage devices,build the indexes, retrieve data etc
whatt are the three types of database schema?
external schema-correspond to different views of data
conceptual schema-describes all the entities, attributes, and relationships with the integrity constraints
internal schema-
complete description of the internal model,containing defintions of things like stored records etc
What is the bottom up approach ?
Approach to database design that starts off at the very fundamental levels - properties of entities and relationships -then with that you build more and more- complexity. Normalization is a bottom up approach
This style works well with a small database ;however, as you start adding more and more attributes then it starts to get more complex and this style doesnt work as well
What is the top down approach?
Basically, you start off the database with a few amount of entities,relationships, and the associated attributes then you apply succesive top down approaches
Explain the physical database design more in-depth
basically this deals with how we implement the logical step of the database design
create relational tables,use methods to achieve maximum efficiency, designing security protocols for the database
Why should the physical database design be different than the logical or the conceptual?
It deals with the what- not the how. Performed in a different time
What are the steps of choosing a dbms?
Determine the terms of reference, basically stating the objectives and getting a set of criteria to evaluate against
- Shortlist two or three products
- Evaluate products against some set of criteria
- Choose that shit
What is transaction design, why is it important?
a transaction is an action that a user does that affects the accesses or changes the database. the rdbms makes sure that once a transaction happens, it is stored and follows the consistencies set by the constraints. There are a couple major things you have to define and document
- data to be used by the transaction
- functional characteristics of the transaction
- output of the transaction
- importance of the users
- expected rate of usage
What are three major types of transactions ?
- Retrieval-,update, and mixed.. Pretty self explanatory
What are some important questions to ask when testing your rdbms?
Learnability: How long does it take a new user to become productive with the system?
• Performance: How well does the system response match the user’s work practice?
• Robustness: How tolerant is the system of user error? • Recoverability: How good is the system at recovering from user errors?
• Adapatability: How closely is the system tied to a single model of work?
what are the steps of the rdbms process?
The database is a fundamental component of an information system, and its development and usage should be viewed from the perspective of the wider requirements of the organization. Therefore, the lifecycle of an organizational information system is inherently linked to the lifecycle of the database that supports it.
Connolly, Thomas. Database Systems (p. 324). Pearson Education. Kindle Edition.
what is a multi valued attribute?
can be broken down into multiples parts- for exmaple a street addy 7141 bob street = 3 different words
what is a derived attribute?
can be derived from other entities not necesarrily the same one as the attribute. for example rent duration is rent start from rent finish
what is a candidate key
minimal amount of attributes that uniquely identify an entry. this allows implies that the candidate key can not be a null value. for example,staff ID is unique to every member but u also need it to identify the person
what is a primary key?
it is the candidate key that is chosen to uniquely identify the person. an alternative key is a backup , for example, if a staff id had max 4 characters and that got maxed out and then their backup id was 6, it would go from 4 to 6
what is a composite key?
the key of an entity sometimes needs multiple keys to identify it so youd use on here
what is a strong entity type?
an entity type that is not existent on another entity. a characteristic is that each entity occurence can be uniquely identiifed by the primary key of that column
What is a weak entity type?
An entity type that is dependent on the existence of another entity. It also can not be uniquely identified by the primary key , one example of this is preference
What is multiplicity and some examples?
Multiplicity is an example of one of the relationship constraints on entities that are used pretty often to maintain the integrity of the database.
An example of this is that a property for rent must have an owner or a staff must have a branch