Chapter 1 Flashcards
(41 cards)
What is a database and what is it from the beginning?
A database is a collection of data, it is just a table. Once you put it in the table, a database is created.
What do you need in order to control a database?
In order to get it controlled, we need DBMS. DBMS is a software.
What is an example of a manually maintained database?
Shopping list
What is an example of a computerized database?
Bank account data
What are the tasks of DBMS?
*Data Definition Language (DDL), when creating a database, need to decide how many rows and columns that are needed for the table. Can add/delete from the table itself. (Table)
*Data Manipulation Language (DML), for example adding/remove/modifying the data. It is about the data. (Data)
*Database Querying, retrieving required data from the database. Required means based on condition. Ex. “attendance >5”.
Database Control, how to control the database. Who sees what/who has access to it?
What are the purposes of database languages?
Communicate.
Retrieve data from the database.
Add data to the database.
Modify data in the database.
Delete data from the database.
What is data?
Raw facts. Ex. “How many students in the class?”
Have not yet been processed to reveal their meaning to the end user
What is data management?
Generation, storage, and retrieval of data
What is information?
Produced by processing raw data to reveal its meaning.
Requires context.
Should be accurate, relevant, and timely to enable good decision making.
What does database definition mean?
*Creating new database and tables
*Alter existing tables in the database
*Drop existing database and tables
What does database manipulation mean?
*Adding new data to the database
*Modifying existing data in the database
*Deleting existing data from the database
What is Database Querying?
Querying means retrieving required data from the database.
For example, you may want to retrieve “name and ID number of students” from the database.
What is Database Control?
*Limiting access to data only to authorized users
*Sharing data among the users in such a way that database integrity is maintained
What are the elements of the database approach?
Entities, Relationships,Data models
What is an entity?
Noun form describing a person, place, object, event, or concept
Composed of attributes
What are Relationships?
Between entities
Usually one-to-many (1:M) or many-to-many (M:N), or one-to-one (1:1)
What are the Main data models used by most of the DBMS?
Network Data Model
Hierarchical Data Model
Relational Data Model
How can the relationship in the Network Data model be?
Binary type or Many to one
How can the relationship in the Hierarchical Data model be?
Data is in collections of records. Relationships are represented as sets. A restricted type of Network Data Model.
Each Record Type can have only one Parent and thus hierarchy.
How can the relationship in the Relational Data model be?
Data and relationships are represented using tables. Data items are represented as columns of tables. A relational data model based database consists of one or more tables.
A relationship between every table. Will get information from the other table, through the relationship.
What is Metadata?
Describes the data characteristics and the set of relationship that links the data found within the database. For example, the type of values (numeric, text…) stored on each data element, and whether the data element can be left empty.
What are the roles of DBMS?
Might be written using: Visual Basic, Java, or C#.
Intermediary between the user and the database.
Enables data to be shared.
Presents the end user with an integrated view of the data.
Receives and translates application requests into operations required to fulfill the requests.
Hides database’s internal complexity from the application programs and users.
What are the advantages of DBMS?
DBMS helps make data management more efficient and effective.
- Better data integration and less data inconsistency (inconsistency = Different versions of the same data appear indifferent places).
- Improved Data Sharing: end users have better access to more managed data.
- Improved Data Security: More users access the data, greater the risks of data security breaches.
- Improved Data Access
- Improved Decision Making. Important: Data Quality (accuracy, validity, and timeliness of data).
What are the types of databases?
Single user supports only one user at a time.
Multiuser supports multiple users at the same time.
Workgroup databases: Supports a small number of users or a specific department.
Enterprise database: Supports many users across many departments.