Introduction to Database Systems Vol 1

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the primary characteristic that distinguishes the database approach from the file-based approach to data management?

  • The file-based approach allows easier data sharing.
  • Databases use more sophisticated hardware.
  • Databases centralize data and minimize redundancy. (correct)
  • The file-based approach is more scalable.

In the context of database systems, what does data independence refer to?

  • The physical storage of data being independent of the operating system.
  • The ability to access data without knowing the storage details.
  • The ability to modify data without affecting applications.
  • The separation of data definition from application programs. (correct)

Which level of the ANSI/SPARC architecture deals with how the data is physically stored and organized?

  • Conceptual level
  • Internal level (correct)
  • External level
  • Logical level

Which of the following is NOT a typical feature provided by a Database Management System (DBMS)?

<p>Automatic hardware upgrades (A)</p> Signup and view all the answers

What role does a Data Administrator (DA) primarily fulfill in a database environment?

<p>Understanding and administering the data requirements of the organization. (C)</p> Signup and view all the answers

Which of the following refers to a situation where the same data exists in multiple files but with different values?

<p>Data inconsistency (D)</p> Signup and view all the answers

What is metadata in the context of a database system?

<p>Data about data (C)</p> Signup and view all the answers

What is a major advantage of using a client-server architecture in database systems?

<p>Allows processing to be divided between client and server machines. (C)</p> Signup and view all the answers

What is the key role of a table's 'candidate key'?

<p>Ensuring each row in the table is unique. (C)</p> Signup and view all the answers

In relational database terminology, what does a 'domain' define?

<p>The set of permissible values for an attribute. (A)</p> Signup and view all the answers

Which operator from relational algebra is used to combine two relations based on a common attribute, selecting only the tuples where the values of the common attribute match?

<p>Join (B)</p> Signup and view all the answers

What is the purpose of the 'restrict' operator in relational algebra?

<p>To select a subset of tuples based on a specified condition. (A)</p> Signup and view all the answers

What distinguishes a 'Candidate Key' from a 'Primary Key'?

<p>A Primary Key has a unique name. (A)</p> Signup and view all the answers

To which attribute does relation algebra's "closure" refer?

<p>The capacity to create complex expressions, since relational operators yield a relation as a result. (D)</p> Signup and view all the answers

What distinguishes a 'base relation' from a 'view'?

<p>A base relation is explicitly stored in the database, whereas a view is a virtual relation derived from others. (B)</p> Signup and view all the answers

What is the role of an 'optimiser' in a Database Management System (DBMS)?

<p>To select the most efficient strategy for executing a query. (B)</p> Signup and view all the answers

What are 'normal forms' used to achieve in relational database design?

<p>Reduction of data redundancy and improved data integrity. (D)</p> Signup and view all the answers

What happens if SQL sets a foreign key to ON DELETE CASCADE?

<p>Deletion of the originating tuple will cause the deletion of the affected tuple. (D)</p> Signup and view all the answers

How does the 'project' operator work?

<p>Selects specific attributes (B)</p> Signup and view all the answers

What is the meaning of atomicity in the relational model?

<p>Where the smallest amount of data cannot or should not be subdivide. (A)</p> Signup and view all the answers

What's the minimum information needed from relational database?

<p>Relations and Domains (C)</p> Signup and view all the answers

If a database language is "relationally complete", then:

<p>It has to have elements relating to relational algebra. (D)</p> Signup and view all the answers

What is a "4th Generation Tool"?

<p>A tool used to abstract functionality with application specific tasks (C)</p> Signup and view all the answers

From our selection, which best describes system dependencies?

<p>Programs defined via program structures (D)</p> Signup and view all the answers

A tuple is best described as:

<p>A row within a relation. (D)</p> Signup and view all the answers

How can domains enhance a database?

<p>They add representation and constrains. (B)</p> Signup and view all the answers

Which description fits a scalar?

<p>If our model doesn't describe it, it can be atomic. (C)</p> Signup and view all the answers

What is the best term to describe adding extra steps to improve atomiticity and help reduce errors?

<p>Transactions (C)</p> Signup and view all the answers

Between Declarative and Procedural models, which must state exactly how?

<p>Procedural must state how (A)</p> Signup and view all the answers

When viewing SQL and performing a query, must the relation always be specified?

<p>Only if that relation is defined. (A)</p> Signup and view all the answers

Is union applicable to non-type compatible relations?

<p>No (B)</p> Signup and view all the answers

Assuming data types aren't respected...

<p>It becomes tricky to compare different relations. (D)</p> Signup and view all the answers

Among the below, which is the best definition of what integrity entails?

<p>No contradictions among values (B)</p> Signup and view all the answers

What is not typically provided after SQL is created?

<p>Rapid Application Development (D)</p> Signup and view all the answers

When describing schemas, what is only to be described with logical structures?

<p>Just the conceptual schema (B)</p> Signup and view all the answers

Among the database components shown, which requires the MOST technical knowledge?

<p>DBA (D)</p> Signup and view all the answers

If an entry is deleted, what does it mean for the tuple?

<p>If needed, the program makes extra actions to ensure integrity. (D)</p> Signup and view all the answers

In the ANSI/SPARC three-level architecture, which level is concerned with the individual user's tailored view of the database?

<p>External level (D)</p> Signup and view all the answers

Which of the following best describes the concept of 'physical data independence' in database systems?

<p>The ability to modify the physical schema without affecting the application programs. (C)</p> Signup and view all the answers

Which database component provides a structured description of the data and its organization within the database?

<p>Data dictionary (B)</p> Signup and view all the answers

In database systems, what is the primary role of the 'conceptual schema'?

<p>Representing the logical structure of the entire database. (D)</p> Signup and view all the answers

Which of the following is a key advantage of a database approach compared to file-based systems regarding data redundancy?

<p>Databases can control and minimize redundancy, ensuring consistency. (B)</p> Signup and view all the answers

What is the main purpose of a Data Manipulation Language (DML) in a database system?

<p>Retrieving, inserting, deleting, and modifying data (C)</p> Signup and view all the answers

Which of the following is a potential disadvantage of the database approach?

<p>Increased complexity (C)</p> Signup and view all the answers

In a client-server database architecture, which component is responsible for managing the database and processing queries?

<p>Server (B)</p> Signup and view all the answers

Which of the following best describes the term 'data model' in the context of database systems?

<p>A theory specifying how data is represented and manipulated (A)</p> Signup and view all the answers

Which of the following is true about relations in the relational model?

<p>All attribute values must be atomic (B)</p> Signup and view all the answers

What is a 'domain' in the context of the relational model?

<p>A set of permissible values for an attribute (C)</p> Signup and view all the answers

Why are domains useful in database design?

<p>To prevent meaningless comparisons (D)</p> Signup and view all the answers

In relational algebra, what is the purpose of the 'Cartesian product' operator?

<p>Listing all possible pairs of tuples from two relations (D)</p> Signup and view all the answers

Which relational algebra operator is used to extract specific columns from a relation?

<p>Project (B)</p> Signup and view all the answers

What is meant by the 'relational closure' property of relational algebra?

<p>The result of any relational operation is another relation. (A)</p> Signup and view all the answers

In a relational database, what is the purpose of using a 'foreign key'?

<p>To establish and enforce a link between two tables (C)</p> Signup and view all the answers

In SQL, what does the ON DELETE CASCADE option do when defining a foreign key constraint?

<p>Automatically deletes related records in the referencing table when the target record is deleted. (B)</p> Signup and view all the answers

What does 'referential integrity' ensure in a relational database?

<p>Each value in a foreign key has a matching value in the referenced candidate key (C)</p> Signup and view all the answers

What is the purpose of 'normalization' in database design?

<p>To minimize data redundancy and improve data integrity (B)</p> Signup and view all the answers

In the context of relational databases, what do 'normal forms' help to achieve?

<p>Reduced data anomalies (A)</p> Signup and view all the answers

What is a 'relational complete' database language?

<p>One that is as powerful as the relational algebra. (D)</p> Signup and view all the answers

What is typically NOT a purpose of the database management system (DBMS)?

<p>Data Storage Structure (A)</p> Signup and view all the answers

What is the distinction between procedural and declarative languages?

<p>Procedural must specify how to get there. (D)</p> Signup and view all the answers

A row in a relational table is known as...

<p>A Tuple (B)</p> Signup and view all the answers

Physical data...

<p>...Describes the logic. (D)</p> Signup and view all the answers

If any changes made to the internal defintion do not affect the outside system, then:

<p>This is called Data Abstraction (C)</p> Signup and view all the answers

What can a DBMS ensure for each system?

<p>Constraints on data (A)</p> Signup and view all the answers

An optimiser primarily works to change...

<p>...The order of operations (B)</p> Signup and view all the answers

What feature provides the ability to access data by more than one user at a time?

<p>Concurrency Facilities (B)</p> Signup and view all the answers

If someone is in controll of making the data relevant or not, then they are:

<p>The Data Administrator (D)</p> Signup and view all the answers

If a team requires complex processing, then they require:

<p>An app programmer (B)</p> Signup and view all the answers

When would all of an organisations data by implemented in a whole?

<p>In database approach (A)</p> Signup and view all the answers

An external schema typically:

<p>Consists of a user's required data (A)</p> Signup and view all the answers

If there aren't any existing tuple, to ensure correctness you can:

<p>Enforce referential integrity (D)</p> Signup and view all the answers

While related to both, which aspect is more key to the interal level than concpetual?

<p>Physical Records (B)</p> Signup and view all the answers

All models or bases that describe data for an object typically use...

<p>...Keys (D)</p> Signup and view all the answers

What is the function of data abstraction?

<p>Makes the system easy to upgrade (C)</p> Signup and view all the answers

If each file in the data base program belongs to the application program, then the phsycial structure...?

<p>...Leads to file format incompatibilities (C)</p> Signup and view all the answers

Under circumstances of no integration of data, then the system can be said to:

<p>Lack data sharing. (C)</p> Signup and view all the answers

When we refer to the components of a system, all of the most general levels...

<p>...Describes the structure. (B)</p> Signup and view all the answers

The conceptual schema (one only)...

<p>...Describes the concteptual level (C)</p> Signup and view all the answers

In the context of relational algebra, what is the key implication of the 'relational closure' property?

<p>It allows the result of any relational operator to be used as input for another, enabling complex queries. (A)</p> Signup and view all the answers

Which of the following scenarios best illustrates the concept of a 'referencing tuple' in the context of foreign keys?

<p>A record in the 'Orders' table that includes a 'CustomerID', linking it to the corresponding customer in the 'Customers' table. (B)</p> Signup and view all the answers

What is the primary role of the 'optimiser' component within a Database Management System (DBMS)?

<p>To determine the most efficient strategy for executing a given query. (D)</p> Signup and view all the answers

What is the primary purpose of specifying a CASCADE rule for deletes on a foreign key?

<p>To ensure that related records in the child table are automatically deleted when the corresponding parent record is deleted. (A)</p> Signup and view all the answers

Which of the following scenarios violates the Entity Integrity rule?

<p>A 'Products' table has a primary key 'ProductID' where one record has a NULL value for this attribute. (A)</p> Signup and view all the answers

Flashcards

File-based system

A collection of application programs each managing its own data.

Database

A shared collection of logically-related persistent data and its description.

DBMS

A software system for defining, accessing, and maintaining a database.

Internal level

The physical representation of data, specifying how it is stored.

Signup and view all the flashcards

Conceptual level

The logical structure of the database.

Signup and view all the flashcards

External level

Individual user's view of the database.

Signup and view all the flashcards

Database schema

Description of the database.

Signup and view all the flashcards

Database instance

The data that populates a database at a particular time.

Signup and view all the flashcards

External schemas

Describes external level. There is one schema for each view.

Signup and view all the flashcards

Conceptual schema

Describes the conceptual level. Contains the logical structure of the data.

Signup and view all the flashcards

Internal schema

Describes the internal level describing physical records and representation.

Signup and view all the flashcards

Physical data independence

Immunity of application programs to changes at the internal level.

Signup and view all the flashcards

Logical data independence

Immunity of application programs to changes at the conceptual level.

Signup and view all the flashcards

Data administrator (DA)

A user who understands data requirements and administers organizational data.

Signup and view all the flashcards

Database administrator (DBA)

A technical user in charge of the database system.

Signup and view all the flashcards

Database

A collection of logically related persistent data and metadata as part of an information system.

Signup and view all the flashcards

Database management system

Software that defines, accesses, and maintains a database.

Signup and view all the flashcards

DBMS features

Provides schema definition, data manipulation, security, and integrity.

Signup and view all the flashcards

Reduced redundancy

Integrating data to remove unwanted redundancy, which reduces wasted space.

Signup and view all the flashcards

Avoiding inconsistency

A state in which there are inconsistent instances of the same data item.

Signup and view all the flashcards

Improved data sharing

Since all data is centralized and the same data has the power to derive more info from less data.

Signup and view all the flashcards

Data independence

DBMS is separate from the implementation allowing greater flexibility.

Signup and view all the flashcards

Complexity

All data about one organization into a single system.

Signup and view all the flashcards

Higher impact of failure

The entire systems rely on the database to function, there is zero redundancy.

Signup and view all the flashcards

Performance

May not be optimized for individual functions with many databases being more generic.

Signup and view all the flashcards

Client-server architecture

The architecture which commonly implements the separation of client systems from database.

Signup and view all the flashcards

Distributed architecture

A database that spans many systems but is virtually presented as a single database.

Signup and view all the flashcards

Data models

Data is described at a conceptual level for defining datatypes structures.

Signup and view all the flashcards

Relational theory

The theory that models data as relations, such as SQL.

Signup and view all the flashcards

Scalar operator

The process of managing the data of an organization through domains.

Signup and view all the flashcards

Relational algebra

Defines the types of information and their relationships within the scope of one database.

Signup and view all the flashcards

Relation

Any database made up of relational values but with no pointers or other structures.

Signup and view all the flashcards

Relational databases restrictions

Must be composed of atomic values and can not be expressed at this level.

Signup and view all the flashcards

Database DML

The database is used between a relational DML and can be achieved at every level of the database.

Signup and view all the flashcards

Dictionary implementation

A table with a unique identifying index for each relation and each set of tables.

Signup and view all the flashcards

Data integrity

The relational data that has been identified by the database.

Signup and view all the flashcards

Database

Every database is always considered correct and follows both, the rules of logic and integrity.

Signup and view all the flashcards

Relation definition

Each attribute of a function in the table.

Signup and view all the flashcards

Relation terminology

The tuple of the table is represented as a row.

Signup and view all the flashcards

The degree

It describes the basic concepts of how the real world is represented in data.

Signup and view all the flashcards

Atomic scalar item

The amount of tuples that it applies to at one time such that one column represents 1 thing.

Signup and view all the flashcards

Domain

It's a domain a named set to scalar values of the same data type.

Signup and view all the flashcards

The set operators

Used for manipulation of relational queries, and the expression of set theory.

Signup and view all the flashcards

Set theory type

Creates a restriction where two database need to be compatible based on their expression.

Signup and view all the flashcards

Union relation output

Performs a union but returns the duplicates.

Signup and view all the flashcards

Intersection relation

Creates the combination of both relations, which is more exclusive.

Signup and view all the flashcards

Difference the relationship

The comparison of two relations to return information that is absent when tested for both relations.

Signup and view all the flashcards

Cartesian product

May be applied in any two relations.

Signup and view all the flashcards

Restricting conditions

Restricts or constrains an operator, such that is not able to pass the restriction.

Signup and view all the flashcards

Logical processing operator.

Can be applied to a system that needs the logical structure of data and be freed from consideration.

Signup and view all the flashcards

Join 2 relations

It joins two relations using a link to another and create constraints.

Signup and view all the flashcards

Relations in this operator

The system can then become an output in either of the relational algebra expressions.

Signup and view all the flashcards

Physical representation inSQL

This has not defined a name or data in SQL in an unknown query. or the system.

Signup and view all the flashcards

Study Notes

Introduction to Database Systems: Volume 1

  • This course is divided into two volumes, focusing on Database systems.
  • The introductory chapter outlines the subject, aims and learning objectives, learning resources, and examination advice.

Route Map

  • Volume 1 primarily addresses the relational model in both theoretical and practical contexts.
  • Chapter 1 introduces the subject and provide exam advice.
  • Chapter 2 describes the components of database environments, prevalent architectures, and the data model concept.
  • Chapter 3 focuses on the relational model including relational data objects, relational operators, and data integrity aspects.
  • Chapter 4 introduces ANSI SQL, emphasizing differences between versions and practical programming skills development.
  • Chapter 5 covers database design, focusing on E/R modeling for conceptual design and normal forms for logical design.
  • Volume 1 includes a sample examination questions appendix.
  • Volume 2 covers advanced database system topics, like relational database management systems and alternative models.
  • Chapter 2 in Volume 2 discusses security, data preservation, and database optimization.
  • Chapter 3 in Volume 2 covers distributed architecture models for database systems.
  • Chapter 4 in Volume 2 is dedicated to newer database systems approaches like deductive, object-oriented, NoSQL, and semantic web databases.
  • Volume 2 includes both appendices with examination question answers and a dataset.
  • A practical experiment on a live system is the easiest way to understand database systems.
  • A dataset is provided on the VLE.
  • The dataset's structure and data are useful in examples, particularly in Chapter 4 of Volume 1.

Key Terms

  • The subject guide introduces vocabulary, concepts, and skills needed for the course examination.
  • Each chapter has a Learning Outcomes section that outlines key terms and skills.
  • These lists can be used to self-asses the understanding of the chapter material.

Subject Area Introduction

  • Understanding database systems is an essential skill for computer scientists and information technologists.
  • Database systems have evolved into a conventional subject but require theoretical and practical addressing due to continuously developing ideas.
  • This subject has both a 'classic' relational model and a 'young' internet-based use component.

Syllabus

  • Introduction to Database Systems includes motivation, storage systems, architecture, facilities, and applications.
  • Database modeling covers basic concepts, E-R modeling, and schema deviation.
  • Relational models cover algebra, and Structured Query Language (SQL) involves definitions, manipulations, access centers, and embedding.
  • Physical design involves estimating workload, access time, logical I/Os, and distribution.
  • Modern database systems cover extended relational and Object Oriented (OO) systems.
  • Advanced database systems include active, deductive, parallel, distributed, and federated systems.
  • Database functionality and services cover files, structures, access methods, transactions, concurrency control, reliability, and query processing.

Course Aims

  • The course aims for an understanding of data storage and manipulation, introducing relational model theory and practice, emerging trends, ANSI SQL, activities and assignments to develop relational database systems.

Learning Objectives

  • Learners will be able to explain needs for, and describe database systems and environments.
  • Learners will be able to thoroughly describe the relational model.
  • Learners will be introduced to ANSI SQL.
  • Learners will be able to describe database design issues including conceptual design by E/R modeling, and logical design through normalization.
  • Learners will be able to develop skills in relational database design and implementation.
  • Learners will be presented with issues pertaining to security, recovery, and concurrency control.
  • Learners will be introduced to distributed architectures, and newer approaches differing from the relational model.
  • Learners will be able to describe links between databases and web technologies.

Learning Outcomes

  • Students will be able to understand issues relating to database systems and know the relational model.
  • Students will be able to analyze problems, synthesize requirements, and design corresponding relational databases with implementation and maintenance skills in Structured Query Language (SQL).
  • Students will have awareness of alternative systems like web-scale, object databases, and deductive systems.
  • Students will need to have in-depth knowledge in previously mentioned trends.

Learning Resources

  • Each guide chapter has essential and further reading lists.
  • Essential readings direct to required journal/textbook sections with choice between Date, and/or Connolly and Begg.
  • It is advised to read recommended readings for both textbooks.
  • Further reading provides pointers toward topic literature, and has associated notes.
  • Extensive reading is enabled through virtual learning environment (VLE), and University of London Online Library access.

Essential Reading

  • It is crucial to use the study resources available online, including VLE and Online Library.

Sample Examination Questions and Answers

  • To help practice for the examination, some end-of-chapter sample questions have been included, with scope limited to the content of that chapter.
  • Aim to spend no more than 45 minutes answering each sample question.
  • After attempting the sample questions under timed conditions, check the appendix for answers.

Examination Advice

  • Check the current Regulations for relevant examination information.
  • Check the VLE for any forthcoming changes.
  • Follow rubric instructions on the actual question paper.
  • The exam requires answering four of five questions within 3 hours.
  • Each question carries 25 marks, and may require knowledge beyond its topic.
  • Before starting, read each question, and skip any element that the test taker doubts they can answer.
  • Some questions have simple system description, and ask for a model using a relational model or SQL tables.
  • Summarizing key terms and definitions is needed.
  • When asked for an explanation or list of reasons, note the marks allocated to the question, so that the examinee provides answers accordingly.
  • Practicing with past examination papers is the best way to prepare in the weeks before the examination.
  • Check the VLE for the most up-to-date info.

Chapter Overview

  • The course and volume 1 of the subject guide have been introduced, and aims and objectives of the course and practical aspects have been listed, along with reading and resources.

Learning Outcomes Reminder

  • Having completed all essential readings and activities, the student should be able to understand main issues related to database systems, and have detailed knowledge about the relational model.
  • Learners should be able to analyze specific problems, synthesize requirements, and develop a top-down design for a corresponding relational database.
  • Learners should be able to implement and maintain a relational database in SQL.
  • Learners should have awareness of alternative approaches/ models for database systems including: web-scale, object, deductive, knowledge-based systems, etc.
  • Learners will have more in-depth knowledge in previously mentioned trends.

Databases: Basic Concepts

  • Chapter 2 examines the basics of databases, including benefits and drawbacks, prior to discussing relational and data modeling.

Overview of Chapter 2 Aims

  • To give what databases are, their components, the architecture of database systems, what a database management system (DBMS) is, data modeling theory and its context.

Learning Outcomes for Chapter 2

  • Learners should be able to discuss file-based approach limitations, explain database approaches, and fully understand DBMSs.
  • Learners should also be able to describe the SPARC architecture, discuss schemas and mappings, explain data independence, and the roles of data components, hardware, software, and users.
  • Learners should be able to present the important DBMS features.
  • Learners will be able to discuss the advantages and disadvantages of, and issues related to, distributed systems.
  • Learners should be able to explain models and theories, within database systems' context.

Chapter 2: Essential Information

  • C.J. Date's "An introduction to database systems," (8th edition), Chapters 1 & 2, and/ or Connolly and C.E. Begg's "Database systems: a practical approach to design implementation and management" (6th edition), Chapters 1 & 2.

Chapter 2: Further Reading

  • Fundamentals of Database Systems, 7th edition., by Elmasri, R., and Navathe, S.B.

What is a Database?

  • Common databases include Amazon, Facebook, YouTube, and iTunes.
  • Users are obvious for online retailers, and less direct purpose, like keeping track of employees or tracking visitor ad activity.

DB Activity

  • The database and structure may be obvious for a library catalogue or online retailer.
  • They also serve less direct purposes, allowing companies to keep track of employees and supplies.
  • The database also helps advertisers target visitors to web pages across different sites.
  • Store data so databases help retailers with ad campaigns, etc.

Database System Qualification

  • Ability to find (retrieve) data.
  • Add (insert) new data.
  • Delete unwanted data.
  • change (update) data.
  • A shoe shop's product information can be stored in database in the form of a table.

Shoe Shop Example

  • The Vans Ferris range will be deleted once they are sold.
  • Kaplan Mesh shoes won't sell well, so prices will be updated.
  • Asics Gel Lite VI is released to add a new product.
  • Databases have structure and content with dynamic content change, with less changeable structure.
  • Structure is intension and changeable content is the extension.
  • Databases are capable of storing a large amount of data.
  • Database management is more than just managing data.

The Need for The Database Approach

  • Any system that has something in common that distinguishes them from other software systems warrants a database approach.
  • In appearance file systems are similar, but conceptually they are qualitatively different.
  • Drawbacks of file-based approach to find database approach.

File-Based Systems Definition

  • File-based systems are each a collection of applications managing their own data in ad hoc files, leading to de-centralized manipulation of records directly from persistent memory with limited sharing.

File-Based System Drawbacks

  • Duplication occurs, where the same information is stored multiple times, which wastes space and can lead to inconsistencies if data isn't updated uniformly across all files.
  • Separation and isolation occur when data is scattered across separate files owned by different departments, limiting access and integration for complex analyses.
  • Program-data dependence means that each file has a designated program, leading to incompatible file formats and required modifications to applications when data structures change.
  • Data modeling and its associated concerns are placed at a lower priority that functionality in file-based systems.

Databases and Database Management Systems (DBMS)

  • Connolly and Begg define a database as a shared collection of logically-related data as part of the information system of an organization.
  • A dataabase stores data, is defined and stored once, and is integrated with minimal redundancy for sharing among application programs.

Defining a DBMS

  • A software system that provides built-in functionality for defining, accessing, and maintaining a database.
  • The information, which stored in a database is self-describing.
  • Data structure may change without affecting use of app.
  • Data abstraction in programming is similar to data definition from app.

Tasks

  • A DBMS performs housekeeping, provides powerful database development and exploitation tools to its user, and is needed for a clean set.
  • Distinctions may be seen between file-based and databases, so data separation may have to occur with data use by a single department.

The Three-Level ANSI/SPARC Architecture

  • Program-data independence is achieved in a database in two or more levels:
  • Low-level: physical data support -High-level: logical structure of data
  • Physical characteristics do not need to be considered.

Aims Formalized By ANSI/SPARC Architecture

  • Users and application programs must be freed from considering elements of the data's physical representation, along with storage and accessibility details.
  • It should be possible to adjust the data's physical representation with affecting users, within its structure that is sustained.
  • A database incorporates all aspects required within a company, each user often just need access to pools of data.

Abstraction Levels

-The external level represents how individual users view the data. -The conceptual level describes how organizational data and structure will occur.

  • The internal level represents the way data is physically, and what the system is likely to do.

Schemas and Mappings

  • Description of the database is known as the intension.
  • Raw data is the extension.
  • Database schema consists of external, conceptual and internal layers.
  • Separation of concerns results in mapping: external/conceptual and conceptual/internal.

Data Independence

  • A key advantage provided.
  • Physical data independence is when application programs are free of chagnes
  • Logical data independence is when applications are free of changes with appropriate modification.

Database System Components

  • Database environment consists of data, representing crucial information, software to manage/ process data, hardware to support, and users including both developers and deployers.

Data Classification

  • Made into Primary/ fundamental and Derived/recalculated.
  • Primary data has characteristics for being integrated and extensively shared.

Software Classification

  • Presented by the Operating system (OS), DBMS, and application programs.
  • The DBMS provides schema languages, etc.
  • Applications formats/computations are by the DBMS.

Hardware Considerations

  • Hardware and OS often grouped together as "platform."
  • Details not needing to be focused on.
  • Selection based off software, and operating systems.

Data Requirements

  • Permanent storage space, temporary storage space, ample computational power, fast communication.
  • Vendors provide configuration requirements.

Users

  • Users can be categorized in data administrators, database administrators, application programers, and end users.
  • The user term can mean many people.

DBMS and Database Languages

  • A DBMS is the tool through which all database access occurs.
  • Features: schema definition, data manipulation, data security, and data integrity.
  • Application programs may be user-developed, or offered by the developer, and may be 4GL.
  • The DBMS is referred to as the Server, whereas the apps are the Client, with their division giving rise to distributed processing.

Advantages of DataBase Systems

  • Reduced redundancy, and thus data duplicaiton.
  • Consistency is therefore easily kept due to the integration via the database approach.
  • Data is more easily shared, due to centralization and restrictions.
  • Data independece allows for protections of applications when in chagne.

Other Database Approach Benefits.

  • Overall improved maintenence, and an integrity that allows specification of consraints.
  • More detailed and coherent security restrictions can be developed, and standards enforced.
  • Concurrent access more easily achieved, resulting in better recovery mechanisms.
  • Scaling is less of a concern.

Database System Disadvantages

  • Complexity and more complexity-driven implementations, in addition to harder implementation.
  • The higher impact of a failure when the entire structure is centralized, and more performance issues than simply individual file-based solutions.

Database System Architectures

  • Can occur in a client-server model, which a server, dedicated to the machine, has great demands for the hardware in order to run competently and at speed.
  • Applications would also run on different client machines
  • A distributed archicture also would be used, and can be implemented on several machines.

Date Models

_Data model is that at is at a conceptual level and is the focus of physical data independence, users work with data, and can be described in charaxteristics.

  • The theory often revolves around relational models, consisting of concepts, operators, and rules in combining.
  • The implementation of a model is database management system (DBMS).

Overview of Chapter 2

  • The chapter explained the advantages, the defined benefits, the characterized file-based approaches, standards and components.

Learning Outcomes Reminder - Key Concepts

  • Must be able to describe database independence, hardware software as a system component.

Other Outcomes

Must be able to:

  • Discuss the limitations, and present important DBMS components.
  • Address distributed systems, and their challenges.
  • Define a mode for database connections

Next Chapter

The relational model and relational DBMSs

  • Chapter three provides an introduction on concepts on how data will be added, or how a database's integrity will be checked.

Chapter 3 Aims

Chapter three addresses theory, relationships, relational components, operators, and integrality.

Learning Outcomes

  • Must understand the language, the model used, the type.
  • Must understand how to be able to make changes to models or relations/ what they do.

Further outcomes

  • Know how to discuss key rules and functions.

Relational Models

  • Models must be a theory with data and relations.

Relational DBMSs

  • A relational DBMS supports relational data.

Relation to DDL

  • Must follow two conditions: data values that are scalar, which means the structure cannot be broken.
  • Information is best expressed in date values.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Relational Model in Database Systems Quiz
3 questions
Relational Data Model Quiz
5 questions
Database Systems Evolution Quiz
7 questions
Use Quizgecko on...
Browser
Browser