Database Concepts: Benefits and Hierarchy

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

Which of the following best defines a database?

  • A single file containing unrelated information.
  • A temporary storage location for data.
  • A set of programs used to create graphics.
  • A collection of related data stored in a central or multiple locations. (correct)

Eliminating data redundancy is a key benefit of using a database.

True (A)

What are the three components of data models?

Data structure, Operations, and Integrity rules

A primary key ______ identifies each record in a relational database.

<p>uniquely</p> Signup and view all the answers

Match the file access methods with their descriptions:

<p>Sequential access = Records are organized and accessed in a specific order. Random access = Records can be accessed in any order. Indexed sequential access = Combines sequential and random access methods using an index.</p> Signup and view all the answers

In the context of data hierarchy, what does a 'record' represent?

<p>A group of related fields. (B)</p> Signup and view all the answers

In a relational database, rows are referred to as fields, and columns are referred to as records.

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

What is the main purpose of normalization in database design?

<p>To improve database efficiency by eliminating redundant data</p> Signup and view all the answers

A ______ key is used to cross-reference tables in a relational database.

<p>foreign</p> Signup and view all the answers

Match the following terms to their meanings in Object-Oriented Programming (OOP) context:

<p>Class = A blueprint that defines what objects can be created. Object = A real instance of a class. Property = A variable that belongs to an object. Method = An action that an object can perform.</p> Signup and view all the answers

What does a Data Dictionary store?

<p>Collection of definitions. (D)</p> Signup and view all the answers

A Database Management System (DBMS) is used for creating, storing, maintaining, and accessing database files.

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

Name the characteristic of data in the data warehouse where data needs to be from a variety of sources.

<p>Integrated</p> Signup and view all the answers

The heart of DBMS software which is responsible for data storage and retrieval is known as the ______.

<p>database engine</p> Signup and view all the answers

Match the following components of a database management system with their functions:

<p>Database engine = Responsible for data storage and retrieval. Data definition = Create and maintain the data dictionary. Data manipulation = Add, delete, modify, and retrieve records from a database. Application generation = Design elements of an application. Data administration = Used for tasks such as backup and recovery.</p> Signup and view all the answers

What is the primary function of a Data Warehouse?

<p>To support decision-making applications. (D)</p> Signup and view all the answers

Data in a data warehouse is typically used for operational purposes.

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

What is ETL?

<p>Extraction, transformation, and loading</p> Signup and view all the answers

______ analytics involves analysing web data to determine the website's effectiveness and efficiency.

<p>web</p> Signup and view all the answers

Match each type of Business analytics with the corresponding definition

<p>Descriptive = How to prepare for future based on past events. Predictive = Predicts what might happen in the future. Prescriptive = Recommends actions and shows outcomes of those decisions.</p> Signup and view all the answers

What does 'Data Manipulation' refer to in the context of database management systems?

<p>Adding, modifying, deleting, and retrieving records from the database. (D)</p> Signup and view all the answers

Object-oriented databases store both data and their relationships within a single object.

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

In object-oriented programming, what is a 'method'?

<p>An action that an object can perform</p> Signup and view all the answers

In the context of a data warehouse, ______ data is information in its original form.

<p>raw</p> Signup and view all the answers

Match the following types of analytics with their descriptions:

<p>Web analytics = Analyses web data to determine website’s effectiveness. Mobile analytics = Analyses mobile device usage. In-app analytics = How is app used. Performance analytics = How is app performing.</p> Signup and view all the answers

What is the purpose of 'integrity rules' in a data model?

<p>To define boundaries for a database, such as min/max values. (D)</p> Signup and view all the answers

Business analytics is forward looking.

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

In the concept of data hierarchy, what is a file?

<p>A group of related records.</p> Signup and view all the answers

To cross reference tables, a ______ key is used.

<p>foreign</p> Signup and view all the answers

Match these characteristics with the stage of data warehouse.

<p>Input = Data from a variety of sources. Extraction, transformation, and loading (ETL) = Converting data into a format that can be used in transformation processing. Storage = Metadata: tells how data was converted into current form. Output = Data warehouse generates report for decision making.</p> Signup and view all the answers

Flashcards

What is a Database?

A collection of related data stored in a central location or multiple locations, usually a group of files, and a critical component of information systems.

Benefits of a database

Gain more insights, handle requests efficiently, reduce redundancy, ensure independence, improve management, maintain relationships, enhance security, and minimize space.

Data Hierarchy

The structure and organization of data, comprised of fields, records, and files.

Sequential Access

Records are accessed sequentially in a specific order; commonly used for backups and archives.

Signup and view all the flashcards

Random Access

Records can be accessed in any order; offers fast access to specific records.

Signup and view all the flashcards

Indexed Sequential Access

Combines sequential and random access methods; similar to a book index.

Signup and view all the flashcards

Database Design: Data Models

Determines how data is created, represented, organized, and maintained within a database.

Signup and view all the flashcards

Data Structure

Describes how data is organized and the relationships among records.

Signup and view all the flashcards

Operations (Data Models)

Describes permissible actions/calculations on data, e.g., updating or viewing records.

Signup and view all the flashcards

Integrity Rules

These are the boundaries of acceptable data values i.e. min/max allowed entries.

Signup and view all the flashcards

Relational Model

Uses tables with rows and columns. Rows are records and columns are fields.

Signup and view all the flashcards

Structured vs Unstructured Data

Relational requires data to be structured in rows/columns; unstructured data lacks a predefined format.

Signup and view all the flashcards

Data Dictionary

Stores definitions, including field name, data type, default value, and validation rules.

Signup and view all the flashcards

Primary Key

Uniquely identifies each record in a relational database.

Signup and view all the flashcards

Foreign Key

Links records in different tables.

Signup and view all the flashcards

Normalization

Improve database efficiency by minimizing duplicate data.

Signup and view all the flashcards

Database Management System (DBMS)

Software for creating, storing, maintaining, and accessing database files, leading to efficient database usage.

Signup and view all the flashcards

Database Engine

The core of the DBMS responsible for data storage and retrieval.

Signup and view all the flashcards

Data Definition

Used to create and maintain the data dictionary; defines file structures.

Signup and view all the flashcards

Data Manipulation

Functions to add, delete, modify, and retrieve database records.

Signup and view all the flashcards

Application Generation

Involves tools to design application elements that interact with the database via interfaces and menus.

Signup and view all the flashcards

Data Administration

Handles backup, recovery, security, and change management tasks.

Signup and view all the flashcards

Object-Oriented Databases

Both data and their relationships are contained in a single object.

Signup and view all the flashcards

Class (OOP)

A template defining the objects, properties, and methods that objects can perform.

Signup and view all the flashcards

Object (OOP)

A specific thing created from the blueprint ie. a class.

Signup and view all the flashcards

Property (OOP)

A variable that belongs to an object and stores data.

Signup and view all the flashcards

Value (OOP)

The actual data assigned to a property of an object.

Signup and view all the flashcards

Method (OOP)

Action that an object can perform.

Signup and view all the flashcards

Data warehouse

A collection of data from different sources designed to support decision-making applications.

Signup and view all the flashcards

Extraction, transformation, and loading (ETL)

Extracting, transforming and loading data into the data warehouse

Signup and view all the flashcards

Study Notes

  • The following topics are excluded from this lesson: hierarchical model (pg 60), network model (pg 61), data-driven websites, distributed databases (pg 66-67), data marts, data lakes (pg 72), big data (section 3.9, pg 75-78), database marketing (pg 78-79), Tableau & PowerBI (pg 79-81).
  • Big data (section 3.9, pg 75-78) is for self study.

Database Defined

  • Databases are collections of related data, stored centrally or in multiple locations.
  • Databases are often groups of files.
  • Databases are a critical component of information systems.
  • Consider a database like a filing cabinet.

Benefits of a Database

  • Better handles data requests.
  • Eliminates or minimizes data redundancy.
  • Data and programs are independent.
  • Improves data management.
  • Variety of relationships among data maintained.
  • Improved security.
  • Reduces storage space.
  • Generates more information from same data.

Data Hierarchy

  • Data is structured and organized, involving fields, records, and files.
  • Record: Group of related fields
  • File: Group of related records

File Access Methods

  • Sequential access: records are organized sequentially, used for backups and archives.
  • Random access: records accessed in any order, fast for few record access.
  • Indexed sequential access: combination, like a book index.

Data Models

  • Data models determine how data is created, represented, organized, and maintained.
  • Data models have 3 components: data structure, operations, and integrity rules.
  • Data structure describes the organization of and relationships among records.
  • Operations describe methods and calculations performed on data (e.g., updating and viewing).
  • Integrity rules define database boundaries, such as min/max values.

Relational Model

  • Relational models use 2-dimensional tables of rows and columns.
  • Rows are records, columns are fields.
  • Relational models require data to be structured in rows and columns unlike unstructured data with no predefined format.
  • DLA 152 teaches how to automate turning unstructured data into structured.

Relational Database Model

  • Defining each table and field within is required to design a relational database, thus defining the logical structure.
  • A data dictionary stores collection of definitions.
  • Field names are student name, admission date, age, major.
  • Field data types are character (text), date, number.
  • A default value is no major = undecided.
  • A validation rule is student age cannot be negative.

Relational Database Model Tools

  • Primary Keys uniquely identify each record in a relational database, like a student number.
  • Foreign Keys are fields that match the primary key column of another table, used to cross-reference tables.
  • Normalizing improves database efficiency by eliminating redundant data.

Database Management System (DBMS)

  • DBMS is software for creating, storing, maintaining, and accessing database files.
  • DBMS makes database use more efficient.
  • Users make information requests with the DBMS.
  • The DBMS returns info to the user, searches the database and retrieves the information.

Components of DBMS

  • Database engine: the heart of DBMS software, responsible for data storage and retrieval.
  • Data definition: creates and maintains the data dictionary; defines file structures in a database.
  • Data manipulation: allows users to add, delete, modify, and retrieve records from a database.
  • Application generation: designs application elements using a database, like data entry screens and interactive menus.
  • Data administration: tasks include backup and recovery, security, and change management.

Object-Oriented Databases

  • In object-oriented databases, both data and relationships are in a single object.
  • Object-Oriented Programming (OOP) Concepts are utilized.
  • A class is a blueprint that defines what objects can be created, what properties they have, and what methods they can perform.
  • A object is a real instance of a class (a specific thing created from the blueprint).
  • A property is a variable that belongs to an object and stores data about it.
  • A value is the actual data assigned to a property of an object.
  • A method is An action that an object can perform (a function inside the class).

OOP Concepts Illustrated Using a Database Storing Sims Characters & Their Actions

  • All Sim characters have properties and skills.
  • Each Sim character will have a name, age, mood and energy values.
  • The actions (methods) the Sim can perform include eat, sleep, and walk.
  • class SimCharacter: specifies properties, such as Name = "", Age = 0, Mood = "Happy", and Energy = 100.
  • Methods (actions) such as Eat, Sleep, and Walk are defined.
  • The Eat method increases energy by 20, Sleep sets energy to 100 and mood to "Refreshed", Walk decreases energy by 10.
  • This does not create actual Sims, it is a blueprint.
  • Creating Sims as objects can be done from the blueprint.
  • Sim1 = SimCharacter(), Sim1.Name is set to “Alice”, Sim1.Age = 25, Sim1.Mood is "Tired".
  • Now Alice and Bob exist as real Sims with unique values.
  • A Sim "performing" actions is carried out by the methods.
  • Methods update properties.
  • Sim1.Eat(), Sim2.Sleep(), Sim1.Walk().

Key Takeaways for OOP Example

  • Classes define what an object should have and can do.
  • Objects are actual instances of a class like Alice and Bob.
  • Properties store data like name, age, mood, and energy.
  • Values are assigned to properties.
  • Methods allow objects to perform actions like eat, sleep, and walk.

Data Warehouse

  • A collection of data from different sources supports decision-making applications and generates business intelligence.
  • Multidimensional data - "hypercubes" are stored.
  • Data characteristics in a data warehouse include being subject-oriented, and integrated.
  • It is subject oriented with focus on specific area, integrated with variety of sources, time variant categorized based on time.
  • It is also categorized by type of data capturing aggregated data, purpose used for analytical purposes.

Components of a Data Warehouse

  • Input: Data comes from external data sources, databases, transaction files, etc.
  • Extraction, transformation, loading (ETL): Collecting, converting, and transferring data to meet data warehouse needs.
  • Storage: Organized as raw data, summary data, and metadata.
  • Collected information is organized.
  • Raw data is info in original form
  • Summary data is subtotals of various categories.
  • Metadata tells users how, when, and by whom the data was collected and converted into its current form
  • Output: Supports different types of analysis and generates reports for decision-making.
  • Online analytical processing
  • Data mining analysis
  • Decision-making reports

Business analytics

  • Using data and statistical methods to gain insight with predictive modelling.
  • Business analytics is forward looking - focused on the future, not what happened in the past.

Types of Business Analytics

  • Descriptive Business Analytics covers past events and how to prepare for future.
  • Predictive Business Analytics predicts what might happen in future.
  • Prescriptive Business Analytics recommends actions and shows outcomes of those decisions.
  • Web analytics analyzes web data and effectiveness/efficiency of website.
  • Mobile analytics analyzes mobile device usage, advertising, and in-app/performance.
  • It analyses advertising and marketing to determine which ads led to app installs.
  • It also analyses in-app usage and app performance.

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Data Hierarchy and File Systems
40 questions

Data Hierarchy and File Systems

IntuitiveRisingAction avatar
IntuitiveRisingAction
Data Hierarchy and Database Approach
37 questions
Use Quizgecko on...
Browser
Browser