Podcast
Questions and Answers
Which of the following best describes the primary function of a Database Management System (DBMS)?
Which of the following best describes the primary function of a Database Management System (DBMS)?
- To secure operating system functionalities.
- To provide an interface for only creating database schemas.
- To manage computer hardware resources.
- To facilitate defining, constructing, manipulating, and sharing databases. (correct)
In the context of database systems, what does 'constructing the database' primarily involve?
In the context of database systems, what does 'constructing the database' primarily involve?
- Designing the logical structure of the database.
- Creating reports from existing data.
- Storing data on a storage medium controlled by the DBMS. (correct)
- Defining user access controls and security protocols.
Which of the following is NOT typically considered a function of manipulating a database?
Which of the following is NOT typically considered a function of manipulating a database?
- Querying the database to retrieve information.
- Updating the database to reflect changes.
- Defining the database schema. (correct)
- Generating reports from the data.
What is a significant advantage of using a DBMS for sharing a database among multiple users and programs?
What is a significant advantage of using a DBMS for sharing a database among multiple users and programs?
In database systems, what is the role of an application program when accessing a database?
In database systems, what is the role of an application program when accessing a database?
Why is protection an important function provided by a DBMS?
Why is protection an important function provided by a DBMS?
What does the term 'data redundancy' refer to in the context of file systems?
What does the term 'data redundancy' refer to in the context of file systems?
Which of the following is a key advantage of using a DBMS to manage data compared to a traditional file processing system?
Which of the following is a key advantage of using a DBMS to manage data compared to a traditional file processing system?
What does data normalization aim to achieve in a database design?
What does data normalization aim to achieve in a database design?
How does a DBMS contribute to data integrity?
How does a DBMS contribute to data integrity?
What is a primary function of the 'backup and recovery subsystem' in a DBMS?
What is a primary function of the 'backup and recovery subsystem' in a DBMS?
How does a DBMS facilitate the enforcement of standards within an organization?
How does a DBMS facilitate the enforcement of standards within an organization?
What is meant by 'Availability of Up-to-Date Information' in a DBMS?
What is meant by 'Availability of Up-to-Date Information' in a DBMS?
What outcomes are enabled by the concurrency control and recovery subsystems of a DBMS?
What outcomes are enabled by the concurrency control and recovery subsystems of a DBMS?
How does the DBMS approach contribute to economies of scale in data processing?
How does the DBMS approach contribute to economies of scale in data processing?
What is a database schema primarily responsible for?
What is a database schema primarily responsible for?
When is the database schema typically designed?
When is the database schema typically designed?
What does a 'database instance' represent?
What does a 'database instance' represent?
What is the primary purpose of the three-schema architecture in a DBMS?
What is the primary purpose of the three-schema architecture in a DBMS?
Why do developers hide the complexity from users through several levels of abstraction in a DBMS?
Why do developers hide the complexity from users through several levels of abstraction in a DBMS?
Which of the following is NOT one of the three levels of abstraction in a DBMS?
Which of the following is NOT one of the three levels of abstraction in a DBMS?
What is the purpose of Data Definition Language (DDL) in the context of database schemas?
What is the purpose of Data Definition Language (DDL) in the context of database schemas?
Where is information about the conceptual, external, and physical schemas stored?
Where is information about the conceptual, external, and physical schemas stored?
Which level of the three-schema architecture describes the stored data in terms of the data model of the DBMS?
Which level of the three-schema architecture describes the stored data in terms of the data model of the DBMS?
Which level of the three-schema architecture hides all physical data storage details from the user?
Which level of the three-schema architecture hides all physical data storage details from the user?
What is the role of a database programmer and database administrator at the conceptual level?
What is the role of a database programmer and database administrator at the conceptual level?
What does the physical level primarily specify in a database system?
What does the physical level primarily specify in a database system?
Which of the following best describes the external level in a DBMS?
Which of the following best describes the external level in a DBMS?
What is data independence in the context of DBMS?
What is data independence in the context of DBMS?
What is the focus of Physical Data Independence?
What is the focus of Physical Data Independence?
What does 'logical data independence' primarily address?
What does 'logical data independence' primarily address?
What do data models define in the context of databases?
What do data models define in the context of databases?
Which data model is based on the concept of real-world entities and relationships among them?
Which data model is based on the concept of real-world entities and relationships among them?
What are 'mapping cardinalities' used for in database design?
What are 'mapping cardinalities' used for in database design?
What is the 'Relational Model' primarily based on?
What is the 'Relational Model' primarily based on?
In the Relational Model, what are tables called?
In the Relational Model, what are tables called?
Which of the following statements accurately describes a key aspect of the relational model?
Which of the following statements accurately describes a key aspect of the relational model?
Who builds DBMS software?
Who builds DBMS software?
Which of the following describes what database application programmers do?
Which of the following describes what database application programmers do?
Flashcards
What is a database?
What is a database?
A collection of data, describing the activities of organizations.
What is a DBMS?
What is a DBMS?
A collection of programs to create and maintain a database.
What is accessing the database?
What is accessing the database?
Sending queries or requests to the DBMS.
What is database protection?
What is database protection?
Signup and view all the flashcards
What is a file processing system?
What is a file processing system?
Signup and view all the flashcards
What is Data redundancy?
What is Data redundancy?
Signup and view all the flashcards
What is data inconsistency?
What is data inconsistency?
Signup and view all the flashcards
What is concurrent access?
What is concurrent access?
Signup and view all the flashcards
What is backup and recovery?
What is backup and recovery?
Signup and view all the flashcards
What is Data Independence?
What is Data Independence?
Signup and view all the flashcards
What is physical data independence?
What is physical data independence?
Signup and view all the flashcards
What is logical data independence?
What is logical data independence?
Signup and view all the flashcards
What are data models?
What are data models?
Signup and view all the flashcards
What is database schema?
What is database schema?
Signup and view all the flashcards
What is database instance?
What is database instance?
Signup and view all the flashcards
What is relationship set?
What is relationship set?
Signup and view all the flashcards
What is Mapping cardinalities?
What is Mapping cardinalities?
Signup and view all the flashcards
What is Relational Model?
What is Relational Model?
Signup and view all the flashcards
What is an Entity?
What is an Entity?
Signup and view all the flashcards
What is an Attribute?
What is an Attribute?
Signup and view all the flashcards
What is an Entity Set?
What is an Entity Set?
Signup and view all the flashcards
What is an Entity-Relationship (ER) Model?
What is an Entity-Relationship (ER) Model?
Signup and view all the flashcards
Who Deals with databases?
Who Deals with databases?
Signup and view all the flashcards
What is the role of Application programmers?
What is the role of Application programmers?
Signup and view all the flashcards
What is the database administrator.
What is the database administrator.
Signup and view all the flashcards
What is Data Definition Language (DDL)?
What is Data Definition Language (DDL)?
Signup and view all the flashcards
What is Data Manipulation Language (DML)?
What is Data Manipulation Language (DML)?
Signup and view all the flashcards
What is the application of Banking system?
What is the application of Banking system?
Signup and view all the flashcards
What is Sales system?
What is Sales system?
Signup and view all the flashcards
What is Unary?
What is Unary?
Signup and view all the flashcards
What is Weak entities?
What is Weak entities?
Signup and view all the flashcards
What is Binary?
What is Binary?
Signup and view all the flashcards
What is Ternary?
What is Ternary?
Signup and view all the flashcards
What is N-ary?
What is N-ary?
Signup and view all the flashcards
Study Notes
Module 1: Introduction to DBMS
- Students can summarize the DBMS concept and overview.
Database Concept
- A database is a collection of data that typically describes the activities of one or more related organizations.
- A university database may contain information about entities like students, faculty, courses, and classrooms.
- It also stores relationships between entities, such as student enrolment in courses, faculty teaching courses, and the use of rooms for courses.
- Data refers to known, recordable facts with implicit meaning.
- Examples of data include names, telephone numbers, and addresses.
- Data can be recorded in an indexed address book or stored on a hard drive using software like Microsoft Access or Excel.
- A database is a collection of related data with an implicit meaning.
- A database system is basically a computer-based record-keeping system.
- Amazon.com serves as an example of a large commercial database.
Data Base Management System (DBMS)
- A database management system (DBMS) is a collection of programs allowing users to create and maintain a database.
- The DBMS is a software system for defining, constructing, manipulating, and sharing databases among users and applications.
- Constructing a database involves storing data on a storage medium controlled by the DBMS.
- Manipulating a database includes querying to retrieve specific data, updating to reflect changes, and generating reports.
- Sharing a database allows multiple users and programs to access it simultaneously.
- An application program accesses the database by sending queries or requests for data to the DBMS.
- A query typically retrieves specific data.
- Key functions of DBMS involve protecting the database and maintaining it over time.
- Protection includes system protection against malfunction and security protection against unauthorized access.
- A large database has a long lifecycle, requiring the DBMS to maintain and evolve the system.
File Systems versus a DBMS
- In a file processing system, permanent records are stored in various files.
- Application programs are written to extract records from and add records to the appropriate files.
- File systems have limitations like data redundancy, inconsistency, unsharable data, and insecure data.
- Storing data in a DBMS allows using its features to manage data robustly and efficiently.
Advantages of a DBMS
- Controlling redundancy avoids duplication of data.
- Data redundancy leads to wasted storage and possible inconsistencies.
- In the database approach, user groups' views are integrated during database design.
- Data normalization stores each logical data item in only one place, ensuring consistency and saving space.
- An inconsistent database provides incorrect or conflicting information so controlling redundancy also controls inconsistency.
- A DBMS enforces data integrity constraints if data is always accessed through it.
- Before inserting salary information, a DBMS can check that the department budget is not exceeded.
- Access controls that govern user data visibility can be enforced using a DBMS.
- Data security refers to data protection.
- Individual pieces of data can be shared among different users to be used in a different way.
- Centralizing data administration offers improvements when several users share data.
- A DBMS schedules concurrent accesses so users think data is being accessed by only one user at a time.
- A DBMS protects users from system failures.
- A DBMS helps recover from hardware or software failures.
- The backup and recovery subsystem is responsible for data recovery.
- If a system fails, the recovery subsystem restores the database to its state before the transaction started running.
- The database approach allows database administrators (DBA) to define and implement standards for database users in an organization.
- Communication and cooperation are improved among departments, projects, and users.
- Standards include names and formats of data, display formats, terminology, and report structures.
- A database administrator (DBA) can implement standards easier centrally than where each user group has control of their data files and software.
- A DBMS makes the database available to all users.
- All users see one user's update immediately after the update is applied.
- Up-to-date information is essential for transaction processing, like reservation or banking systems, and from the DBMS's concurrency control and recovery subsystems.
- The DBMS approach consolidates data and applications to reduce wasteful overlap.
- There is often overlap between data-processing personnel, projects, departments, and redundancies among applications.
- Enables an investment in communication gear, processors, and storage devices instead of individual departments.
- This reduces overall costs of management and operation.
Database Schema
- A database schema is a skeleton structure presenting the logical view of the entire database.
- It defines data organization and associated relationships.
- The overall design is called the database schema and is the skeleton of the database.
- The schema is designed when the database does not exist.
- A database schema does not contain data or information.
Database Instance
- A database instance is a state of operational database with data at any given time.
- It contains a snapshot of the database.
- Database instances change with time.
- The collection of information stored in the database at a moment is called an instance.
Three Schema Architecture in a DBMS
- A database system should provide users with an abstract view of data.
- The system hides details on how data is stored and maintained.
- System users are not computer-trained, and developers hide complexity through abstraction.
- Data in a DBMS is in three levels of abstraction.
- The conceptual, physical, and external schemas are the three levels of abstraction for the database description.
- A data definition language (DDL) defines the external and conceptual schemas.
- System catalogs store information on the conceptual, external, and physical schemas.
Conceptual Level
- The conceptual level or logical level describes the stored data by the data model of the DBMS.
- This level explains the entire database.
- Physical data storage details are hidden, but focuses on relations, data types, operations, and constraints.
- Database programmers and administrators work to create functions, triggers, procedures, and relations.
- In a relational DBMS, all stored relations are described by the conceptual level.
Physical Level
- The physical level specifies storage details.
- It summarizes how the relations described in the conceptual schema are stored on secondary storage, such as disks and tapes.
- It deals with data storage structures (B+ trees, Hash tables) and access ways to the data in the least time.
- The user does not interact with this level.
- This level is written in DDL.
External Level
- The external level customizes and authorizes data access by individual users or groups.
- This level provides an interface to the user.
- The GUI interact with the system without needing to know the stored data types.
- Any given database has one conceptual schema and one physical schema, but possibly many external schemas tailored to user groups.
Data Independence
- A database system contains user data and data about data, known as metadata, to assist in locating and retrieving data easily.
- Modifying a set of metadata once stored is difficult.
- A DBMS expands and changes to satisfy user requirements.
- Data independence is the ability to modify a schema definition in one level without affecting schema definition in the higher level.
- Physical Data Independence is the ability to modify a schema at the physical level without affecting the schema definition at the logical level.
- Logical Data Independence is the ability to modify a schema at the logical level without affecting the schema definition at the view level.
Data Models
- Data models define how a database's logical structure is modelled.
- Data models are fundamental entities that introduce abstraction in a DBMS.
- Data models define how data is connected and stored within a system.
Entity-Relationship Model
- The Entity-Relationship (ER) Model is based on real-world entities and their relationships.
- The ER Model creates entity sets, relationship sets, general attributes, and constraints when formulating a real-world scenario into a database model.
- The ER Model works best for the conceptual design of a database.
- The ER Model is based on entities and their attributes, as well as relationships among entities.
Entity
- An entity in an ER model is a real-world entity with properties called attributes.
- Attributes are defined by its set of values, called the domain.
- A school database uses a student as an entity.
- Students' attributes are name, age, and class.
Relationship
- A relationship is the logical association among entities.
- Relationships are mapped with entities.
- Mapping cardinalities define associations between two entities.
- Cardinalities include one to one, one to many, many to one, and many to many.
Relational Model
- The Relational Model is the most popular data model in DBMS.
- It is more scientific than others.
- The model is based on first-order predicate logic and defines a table as an n-ary relation.
- The highlights of the model are: -- Data is stored in tables called relations. -- Relations can be normalized. -- Normalized relations have atomic values saved. -- Each row in a relation (called tuples) contains a unique value. -- Each column in a relation (called attributes) receives values from the same domain.
People Who Deal with Databases
- Many people are associated with creating and using databases.
- There are database implementers, who build DBMS software, and users who wish to store and use data in a DBMS.
- Database implementers work for vendors like IBM or Oracle.
- End users come from increasing number of fields.
- Application programmers and database administrators (DBAs) are needed for a DBMS.
- Application programmers develop packages for end-user data access, who are not computer experts, using software and data tools from DBMS vendors.
- Those tools are report writers, spreadsheets, and statistical packages.
- Application programmers can choose different tools to develop UIs.
- Rapid Application Development (RAD) tools help programmers construct forms and reports with minimal programming efforts.
- A personal database is maintained by the individual who owns it.
- Corporate or enterprise-wide databases require a professional called the database administrator.
- Database administrators manage a DBMS for an enterprise.
- The DBA designs schemas, provides security, restores the system after a failure, and tunes to meet user needs.
The functions of DBA include:
- Defining the schema.
- Storage of structure and access method.
- Modifying schema and physical organization.
- Granting data access authorization.
- Routine maintenance.
Disadvantages of DBMS:
- Problems associated with centralization
- The cost of software/hardware migration
- Complexity of backup and recovery
- Extra hardware is often required.
- System is usually complex.
Database System Applications
- Banking databases store customer information, accounts, loans and transactions.
- Airlines databases manage reservations and schedule information.
- Universities databases store student information, course registration, and grades.
- Credit card transactions databases store purchase information and monthly statements.
- Telecommunication databases store call records, monthly bills, and balances on prepaid calling cards.
- Finance databases store information about holdings, sales, and buys of financial instruments such as stocks and bonds.
- Sales databases store customer, product
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.